enableWeaponDisassembly: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=") |
Lou Montana (talk | contribs) m (Fix bad regex effects) Tag: Undo |
||
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. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''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 |SYNTAX2= | | s2= entity '''enableWeaponDisassembly''' enable |SYNTAX2= | ||
|p21= entity: [[Object]] - unit or static weapon |PARAMETER21= | |p21= entity: [[Object]] - unit or static weapon |PARAMETER21= | ||
|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 | | |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 |PARAMETER22= | ||
|r2= | |r2= [[Nothing]] |RETURNVALUE2= | ||
|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= | ||
Line 38: | Line 39: | ||
| [[weapons]], [[action]], [[inGameUISetEventHandler]] |SEEALSO= | | [[weapons]], [[action]], [[inGameUISetEventHandler]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} | ||
Line 50: | Line 51: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
Revision as of 19:30, 24 September 2020
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:
- 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