{"name":"weaponDisassemblyEnabled","title":"weaponDisassemblyEnabled","type":"command","url":"https://community.bistudio.com/wiki/weaponDisassemblyEnabled","revid":347215,"updated":"2023-09-05T16:49:02Z","groups":["Weapons"],"status":"ok","games":{"arma3":"2.14"},"since":"arma3 2.14","arma3_since":"2.14","locality":{"argument":"global"},"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.\n\n> [!IMPORTANT]\n> Beware that when the weapon disassembly is disabled on the player, it is tracking the unit itself.\n> If the player leaves the server and another player joins into the same playable unit, they will not have the option to disassemble either.","syntaxes":[{"syntax":"weaponDisassemblyEnabled entity","params":[{"name":"entity","type":"Object","description":"player or weapon","type_expr":"Object"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if enabled"},"form":"unary","right":{"text":"entity"}}],"examples":[{"code":["private _enabled = weaponDisassemblyEnabled player && weaponDisassemblyEnabled _weapon;"]}],"see_also":["enableWeaponDisassembly","weapons","action","inGameUISetEventHandler"]}