enableWeaponDisassembly: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code> +" to "<code>")
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
Line 19: Line 19:
|r1= [[Nothing]]
|r1= [[Nothing]]


|s2= entity '''enableWeaponDisassembly''' enable
|s2= entity [[enableWeaponDisassembly]]  enable


|p21= entity: [[Object]] - unit or static weapon
|p21= entity: [[Object]] - unit or static weapon

Revision as of 16:41, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Weapons

Syntax

Syntax:
Syntax needed
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