Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.45

Description

Description: Return the current status of the weapon safety switch (as set by setWeaponSafety).

Syntax

Syntax: weaponSafety unit
Parameters:
Return Value: Boolean - if true, safety switch is on (current weapon cannot be fired).
Always returns false for unarmed units.

Alternative Syntax

Syntax:weaponSafety [vehicle,turret]
Parameters:
Return Value:Boolean - if true, safety switch is on (turret cannot be fired)

Examples

Examples:
_status = weaponSafety player
_status = weaponSafety [someTank,[0]]

Additional Information

See also: setWeaponSafety, weaponState
Multiplayer: 
Problems: 

Notes