Space Engineers
|
Public Member Functions | |
void | ShootMissile (Vector3 velocity) |
Should create a missile with the given parameters, make a sound, create particle effects, etc. More... | |
Public Member Functions inherited from Sandbox.Game.Entities.IMyGunObject< MyGunBase > | |
Vector3 | DirectionToTarget (Vector3D target) |
bool | CanShoot (MyShootActionEnum action, long shooter, out MyGunStatusEnum status) |
Should return true if and only if the gun would be able to shoot using the given shoot action. This method should not do any side-effects such as play sounds or create particle FX. More... | |
void | Shoot (MyShootActionEnum action, Vector3 direction, Vector3D?overrideWeaponPos, string gunAction=null) |
Perform the shoot action according to the action parameter. This method should only be called when CanShoot returns true for the given action! More... | |
void | EndShoot (MyShootActionEnum action) |
void | BeginFailReaction (MyShootActionEnum action, MyGunStatusEnum status) |
Perform a fail reaction to begin shoot that is shown on all clients (e.g. fail sound, etc.) More... | |
void | BeginFailReactionLocal (MyShootActionEnum action, MyGunStatusEnum status) |
void | ShootFailReactionLocal (MyShootActionEnum action, MyGunStatusEnum status) |
int | GetAmmunitionAmount () |
void | OnControlAcquired (MyCharacter owner) |
void | OnControlReleased () |
void | DrawHud (IMyCameraController camera, long playerId) |
void | UpdateSoundEmitter () |
Additional Inherited Members | |
Properties inherited from Sandbox.Game.Entities.IMyGunObject< MyGunBase > | |
float | BackkickForcePerSecond [get] |
float | ShakeAmount [get] |
MyDefinitionId | DefinitionId [get] |
bool | EnabledInWorldRules [get] |
T | GunBase [get] |
bool | IsShooting [get] |
Should return true when the weapon is shooting projectiles and other classes should react accordingly (i.e.apply backkick force etc.) More... | |
int | ShootDirectionUpdateTime [get] |
Zero means that the gun should not update shoot direction at all More... | |
Definition at line 12 of file IMyMissileGunObject.cs.
void Sandbox.Game.Entities.IMyMissileGunObject.ShootMissile | ( | Vector3 | velocity | ) |
Should create a missile with the given parameters, make a sound, create particle effects, etc.
Implemented in Sandbox.Game.Weapons.MySmallMissileLauncher.