mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1c6c4d6bff
* Fix Brackets around code * Update fnc_handleFired.sqf * Shouldn't have changed this one --------- Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
30 lines
546 B
Plaintext
30 lines
546 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Ruthberg
|
|
*
|
|
* Handles wire damage
|
|
*
|
|
* Arguments:
|
|
* 0: wire <OBJECT>
|
|
* 1: selectionName <STRING>
|
|
* 2: damage <NUMBER>
|
|
* 3: source <OBJECT>
|
|
* 4: projectile <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [wire, "selection", 5, source, "scrap"] call ace_concertina_wire_fnc_handleDamage
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_wire", "", "_damage", "_source", ""];
|
|
if (_damage < 0.5) exitWith { 0 };
|
|
|
|
if (!isNull _source) then {
|
|
_wire setVariable [QGVAR(lastDamager), _source];
|
|
};
|
|
|
|
_damage
|