ACE3/addons/towing/XEH_postInit.sqf
Dystopian 74be4f1503
Towing - Fix swimming issues (#9401)
* Fix swimming issues

* Fix fire with rope in hand
2023-11-10 21:16:11 -03:00

15 lines
440 B
Plaintext

#include "script_component.hpp"
["MouseButtonDown", LINKFUNC(onMouseButtonDown)] call CBA_fnc_addDisplayHandler;
["MouseButtonUp", LINKFUNC(onMouseButtonUp)] call CBA_fnc_addDisplayHandler;
GVAR(mouseLeft) = false;
GVAR(mouseRight) = false;
GVAR(blockFireEHID) = -1;
GVAR(cancel) = false;
GVAR(canAttach) = false;
[QGVAR(setTowParent), {
params ["_parent", "_child"];
_child setTowParent _parent;
}] call CBA_fnc_addEventHandler;