weaponDisassemblyEnabled

From Bohemia Interactive Community
Revision as of 17:49, 5 September 2023 by Lou Montana (talk | contribs) (Text replacement - " |version1= 2.14 |branch= dev" to " |version1= 2.14")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

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.
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.
Groups:
Weapons

Syntax

Syntax:
weaponDisassemblyEnabled entity
Parameters:
entity: Object - player or weapon
Return Value:
Boolean - true if enabled

Examples

Example 1:
private _enabled = weaponDisassemblyEnabled player && weaponDisassemblyEnabled _weapon;

Additional Information

See also:
enableWeaponDisassembly 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