enableWeaponDisassembly: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|PARAMETER1= |p22=" to "|PARAMETER21= |p22=")
No edit summary
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.68


|1.68|Game version=
|arg= global


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


|eff= global |Multiplayer Effects=
|gr1= Weapons
____________________________________________________________________________________________


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


| '''enableWeaponDisassembly''' enable |SYNTAX=
|s1= [[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=
|r1= [[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
|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


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


|x1= <sqf>enableWeaponDisassembly false;</sqf>


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


____________________________________________________________________________________________
|x3= <sqf>mortar1 enableWeaponDisassembly false;</sqf>


| [[weapons]], [[action]], [[inGameUISetEventHandler]] |SEEALSO=
|seealso= [[weaponDisassemblyEnabled]] [[weapons]] [[action]] [[inGameUISetEventHandler]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 17:08, 18 April 2023

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:
weaponDisassemblyEnabled weapons action inGameUISetEventHandler

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