enableWeaponDisassembly: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
No edit summary
 
(7 intermediate revisions by one other user not shown)
Line 12: Line 12:
|descr= Enables or disables disassembly of static weapons. Could be applied to local [[player]], to another unit or to static weapon directly.
|descr= Enables or disables disassembly of static weapons. Could be applied to local [[player]], to another unit or to static weapon directly.


|s1= '''enableWeaponDisassembly''' enable
|s1= [[enableWeaponDisassembly]] enable


|p1= enable: [[Boolean]] - [[false]] to prevent local [[player]] from being able to disassemble static weapons
|p1= enable: [[Boolean]] - [[false]] to prevent local [[player]] from being able to disassemble static weapons
Line 25: Line 25:
|r2= [[Nothing]]
|r2= [[Nothing]]


|x1= <code>[[enableWeaponDisassembly]] [[false]];</code>
|x1= <sqf>enableWeaponDisassembly false;</sqf>


|x2= <code>soldier1 [[enableWeaponDisassembly]] [[false]];</code>
|x2= <sqf>soldier1 enableWeaponDisassembly false;</sqf>


|x3= <code>mortar1 [[enableWeaponDisassembly]] [[false]];</code>
|x3= <sqf>mortar1 enableWeaponDisassembly false;</sqf>


|seealso= [[weapons]], [[action]], [[inGameUISetEventHandler]]
|seealso= [[weaponDisassemblyEnabled]] [[weapons]] [[action]] [[inGameUISetEventHandler]]
}}
}}

Latest revision as of 17:08, 18 April 2023

Hover & click on the images for description

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:
soldier1 enableWeaponDisassembly false;
Example 3:
mortar1 enableWeaponDisassembly false;

Additional Information

See also:
weaponDisassemblyEnabled 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