{"name":"BIS_fnc_helicopterDamage","operator":null,"title":"BIS fnc helicopterDamage","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_helicopterDamage","revid":370866,"updated":"2025-02-21T10:43:59Z","groups":["Helicopters"],"status":"ok","replaced_by":[],"games":[{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Handling EH-based helicopter damage, event handler in question being Da*mm*aged [sic].\n\n> [!NOTE]\n> Executed script is:\n>\n> ```sqf\n> helicopter execVM \"hsim\\air_h\\data\\scripts\\main_rotor_destruction.sqf\";\n> ```\n>\n> helicopter rotor status can be found via variable **HSim_mainRotorDestroyed**:\n>\n> ```sqf\n> _isRotorDestroyed = helicopter getVariable [\"HSim_mainRotorDestroyed\", false];\n> ```","syntaxes":[{"syntax":"[helicopter, selection, damage] call BIS_fnc_helicopterDamage","since":null,"effect":null,"exec":null,"params":[{"name":"helicopter","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"helicopter: Object"},{"name":"selection","type":"String","optional":false,"default":null,"description":"name of the helicopter selection receiving damage. Must be \"main rotor\"","types":["String"],"since":null,"text":"selection: String - name of the helicopter selection receiving damage. Must be \"main rotor\""},{"name":"damage","type":"Number","optional":false,"default":null,"description":"*selection*'s damage. Will only trigger effects if *damage* > 0.999","types":["Number"],"since":null,"text":"damage: Number - *selection*'s damage. Will only trigger effects if *damage* > 0.999"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when done","text":"Boolean - true when done"}}],"examples":[{"text":"```sqf\nmyHelicopter addEventHandler [\"Dammaged\", { _this call BIS_fnc_helicopterDamage; }];\n```","code":["myHelicopter addEventHandler [\"Dammaged\", { _this call BIS_fnc_helicopterDamage; }];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Function Group: Helicopters","Functions","Introduced with Take On Helicopters version 1.00","Take On Helicopters: Functions","Take On Helicopters: New Functions"],"docblock":null,"filled_from_docblock":[]}