SetWeaponState
Jump to navigation
Jump to search
Script Example Missing Function SetWeaponState needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This function sets a custom weapons state.
Syntax
bool setWeaponState ( weapon theWeapon, string theState )
Required Arguments
- theWeapon: the weapon you wish to change the state of
- theState: the state you wish to set:
- reloading: make the weapon reload.
- firing: make the weapon constantly fire its target (unless any shooting blocking flags are set) according to its assigned firing rate.
- ready: make the weapon stop reloading or firing.
Returns
Returns true on success, false otherwise.
Requirements
This template will be deleted.
See also
- createWeapon
- fireWeapon
- getWeaponAmmo
- getWeaponClipAmmo
- getWeaponFiringRate
- getWeaponFlags
- getWeaponOwner
- getWeaponProperty
- getWeaponState
- getWeaponTarget
- resetWeaponFiringRate
- setWeaponAmmo
- setWeaponClipAmmo
- setWeaponFiringRate
- setWeaponFlags
- setWeaponProperty
- setWeaponState
- setWeaponTarget