enableWeaponDisassembly: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Update)
m (template:command argument fix)
Line 16: Line 16:
| '''enableWeaponDisassembly''' enable |= Syntax
| '''enableWeaponDisassembly''' enable |= Syntax


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


| [[Nothing]] |= RETURNVALUE
| [[Nothing]] |RETURNVALUE=  


| s2= entity '''enableWeaponDisassembly''' enable |= Syntax
| s2= entity '''enableWeaponDisassembly''' enable |= Syntax


|p21= entity: [[Object]] - unit or static weapon |= PARAMETER1
|p21= entity: [[Object]] - unit or static weapon |PARAMETER1=  
|p22= 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 |= PARAMETER2
|p22= 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 |PARAMETER2=  


| r2= [[Nothing]] |= RETURNVALUE
| r2= [[Nothing]] |RETURNVALUE=  




|x1= <code> [[enableWeaponDisassembly]] [[false]];</code>|= EXAMPLE1
|x1= <code> [[enableWeaponDisassembly]] [[false]];</code>|EXAMPLE1=
|x2= <code> soldier1 [[enableWeaponDisassembly]] [[false]];</code>|= EXAMPLE2
|x2= <code> soldier1 [[enableWeaponDisassembly]] [[false]];</code>|EXAMPLE2=
|x3= <code> mortar1 [[enableWeaponDisassembly]] [[false]];</code>|= EXAMPLE3
|x3= <code> mortar1 [[enableWeaponDisassembly]] [[false]];</code>|EXAMPLE3=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[weapons]], [[action]], [[inGameUISetEventHandler]] |= SEEALSO
| [[weapons]], [[action]], [[inGameUISetEventHandler]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:31, 7 April 2019

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:
Uncategorised

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

Notes

Bottom Section