ACE3/addons/tacticalladder/functions/fnc_handleKilled.sqf
PabstMirror f4473ccfd3
Tactical Ladder - Fix args to cancleTLdeploy (#6280)
Fix #6232

cancelTLdeploy expects `[unit, mouse button key]`
2018-04-19 12:20:18 -05:00

23 lines
372 B
Plaintext

/*
* Author: commy2
* Handle death.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [bob] call ace_tacticalladder_fnc_handleKilled
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit"];
if (!isNull GETMVAR(ladder,objNull) && {GVAR(ladder) in attachedObjects _unit}) then {
[_unit, 1] call FUNC(cancelTLdeploy);
};