/* * Author: Ruthberg * * Handles wire damage * * Arguments: * 0: wire * 1: selectionName * 2: damage * 3: source * 4: projectile * * Return Value: * None * * Example: * [wire, "selection", 5, source, "scrap"] call ace_concertina_wire_fnc_handleDamage * * Public: No */ #include "script_component.hpp" params ["_wire", "", "_damage", "_source", ""]; if (_damage < 0.5) exitWith { 0 }; if (!(isNull _source)) then { _wire setVariable [QGVAR(lastDamager), _source]; }; _damage