{"name":"BIS_fnc_moduleDamage","operator":null,"title":"BIS fnc moduleDamage","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_moduleDamage","revid":352163,"updated":"2024-02-01T23:25:25Z","groups":["Modules"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Damage given vehicles.\n\n> [!NOTE]\n> Regarding locality: if a hitpoint is defined,\n> Local Argument setHitPointDamage is used. Else,\n>\n> Global Argument setDamage is used.","syntaxes":[{"syntax":"[logic, vehicles, isActivated] call BIS_fnc_moduleDamage","since":null,"effect":null,"exec":null,"params":[{"name":"logic","type":"Object","optional":true,"default":"0","description":"the logic. Possible setVariable parameter:\n- \"value\": Number -  wanted damage, in range 0..1\n- \"bodypart\": String - (Optional, default \"0\") setHitPointDamage hitpoint name","types":["Object"],"since":null,"text":"logic: Object - the logic. Possible setVariable parameter:\n- \"value\": Number - (Optional, default 0) wanted damage, in range 0..1\n- \"bodypart\": String - (Optional, default \"0\") setHitPointDamage hitpoint name"},{"name":"vehicles","type":"Array of Objects","optional":false,"default":null,"description":"list of vehicles","types":["Array","Object"],"since":null,"text":"vehicles: Array of Objects - list of vehicles"},{"name":"isActivated","type":"Boolean","optional":true,"default":"true","description":"if true, the fuel is set","types":["Boolean"],"since":null,"text":"isActivated: Boolean - (Optional, default true) if true, the fuel is set"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when done, even if isActivated equals false","text":"Boolean - true when done, even if *isActivated* equals false"}}],"examples":[{"text":"```sqf\n[myLogic, vehicle player, true] call BIS_fnc_moduleDamage;\n```","code":["[myLogic, vehicle player, true] call BIS_fnc_moduleDamage;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setDamage","setHitPointDamage"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Modules","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}