enableWeaponDisassembly: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
Line 13: Line 13:
| Enables or disables disassembly of static weapons. Could be applied to local [[player]], to another unit or to static weapon directly.
| Enables or disables disassembly of static weapons. Could be applied to local [[player]], to another unit or to static weapon directly.


| '''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

Revision as of 00:07, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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:
weaponsactioninGameUISetEventHandler

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