weaponDisassemblyEnabled: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.14 |branch= dev |arg= global |gr1= Weapons |descr= Returns true is weapon disassembly is enabled otherwise false. As d...") |
Lou Montana (talk | contribs) m (Text replacement - " |version1= 2.14 |branch= dev" to " |version1= 2.14") |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.14 | |version1= 2.14 | ||
|arg= global | |arg= global | ||
Line 9: | Line 8: | ||
|gr1= Weapons | |gr1= Weapons | ||
|descr= Returns | |descr= Returns if weapon disassembly is enabled. As disassembly can be enabled/disabled on both player and weapon, it might be necessary to check both. | ||
{{Feature|important|Beware that when weapon disassembly is disabled on the player, it is tracking | {{Feature|important| | ||
Beware that when the weapon disassembly is disabled on the player, it is tracking the unit itself. | |||
If the player leaves the server and another player joins into the same playable unit, they will not have the option to disassemble either. | |||
}} | |||
|s1= [[weaponDisassemblyEnabled]] entity | |s1= [[weaponDisassemblyEnabled]] entity | ||
Line 19: | Line 21: | ||
|r1= [[Boolean]] - [[true]] if enabled | |r1= [[Boolean]] - [[true]] if enabled | ||
|x1= <sqf>private _enabled = weaponDisassemblyEnabled player && weaponDisassemblyEnabled _weapon;</sqf> | |||
|x1= <sqf>_enabled = weaponDisassemblyEnabled player && weaponDisassemblyEnabled _weapon;</sqf> | |||
|seealso= [[enableWeaponDisassembly]] [[weapons]] [[action]] [[inGameUISetEventHandler]] | |seealso= [[enableWeaponDisassembly]] [[weapons]] [[action]] [[inGameUISetEventHandler]] | ||
}} | }} |
Latest revision as of 17:49, 5 September 2023
Description
- Description:
- Returns if weapon disassembly is enabled. As disassembly can be enabled/disabled on both player and weapon, it might be necessary to check both.
- Groups:
- Weapons
Syntax
- Syntax:
- weaponDisassemblyEnabled entity
- Parameters:
- entity: Object - player or weapon
- Return Value:
- Boolean - true if enabled
Examples
- Example 1:
Additional Information
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