enableWeaponDisassembly: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 27: | Line 27: | ||
|x1= <sqf>enableWeaponDisassembly false;</sqf> | |x1= <sqf>enableWeaponDisassembly false;</sqf> | ||
|x2= < | |x2= <sqf>soldier1 enableWeaponDisassembly false;</sqf> | ||
|x3= < | |x3= <sqf>mortar1 enableWeaponDisassembly false;</sqf> | ||
|seealso= [[weapons]] [[action]] [[inGameUISetEventHandler]] | |seealso= [[weapons]] [[action]] [[inGameUISetEventHandler]] | ||
}} | }} |
Revision as of 10:21, 13 May 2022
Description
- Description:
- Enables or disables disassembly of static weapons. Could be applied to local player, to another unit or to static weapon directly.
- Groups:
- Weapons
Syntax
- Syntax:
- enableWeaponDisassembly enable
- Parameters:
- enable: Boolean - false to prevent local player from being able to disassemble static weapons
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- entity enableWeaponDisassembly enable
- Parameters:
- entity: Object - unit or static weapon
- enable: Boolean - false to prevent a unit from being able to disassemble static weapons, or to prevent a static weapon from being disassembled by anyone
- Return Value:
- Nothing
Examples
- Example 1:
- enableWeaponDisassembly false;
- Example 2:
- Example 3:
Additional Information
- See also:
- weapons action inGameUISetEventHandler
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note