ACE3/addons/tacticalladder/functions/fnc_handleInteractMenuOpened.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
412 B
Plaintext

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