ace_safemode_fnc_getWeaponSafety
Description
Getter for weapon safety state.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT | |
1 | Weapon | STRING | |
2 | Muzzle | STRING | current muzzle of weapon |
Return Value
Description | Datatype(s) |
---|---|
Safety status | BOOL |
Example
[ACE_player, currentWeapon ACE_player] call ace_safemode_fnc_getWeaponSafety
Authors
- johnb43
ace_safemode_fnc_setWeaponSafety
Description
Lock or unlock the given weapon based on weapon state.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT | |
1 | Weapon | STRING | |
2 | State | BOOL | |
3 | Show hint | BOOL | true |
4 | Muzzle | STRING | current muzzle of weapon |
Return Value
None
Example
[ACE_player, currentWeapon ACE_player, true] call ace_safemode_fnc_setWeaponSafety
Authors
- Brostrom.A
- johnb43