enableWeaponDisassembly: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.68|Game version=
|1.68


|arg= global |Multiplayer Arguments=
|arg= global


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Weapons |GROUP1=
|gr1= Weapons


| Enables or disables disassembly of static weapons. Could be applied to local [[player]], to another unit or to static weapon directly. |DESCRIPTION=
| Enables or disables disassembly of static weapons. Could be applied to local [[player]], to another unit or to static weapon directly.


| '''enableWeaponDisassembly''' enable |SYNTAX=
| '''enableWeaponDisassembly''' enable


|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


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


| s2= entity '''enableWeaponDisassembly''' enable |SYNTAX2=
| s2= entity '''enableWeaponDisassembly''' enable


|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 |PARAMETER22=
|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= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]]


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


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


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




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


|  |MPBEHAVIOUR=
|  |MPBEHAVIOUR=

Revision as of 00:38, 18 January 2021

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