2015-06-04 19:13:44 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2015-06-04 19:13:44 +00:00
|
|
|
GVAR(adjustPFH) = -1;
|
|
|
|
|
2017-12-14 14:51:14 +00:00
|
|
|
GVAR(height) = 0.5;
|
2015-06-04 19:13:44 +00:00
|
|
|
|
|
|
|
// Cancel adjustment if interact menu opens
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
2015-09-26 01:16:55 +00:00
|
|
|
|
|
|
|
// Cancel adjusting on player change.
|
2016-06-21 23:39:20 +00:00
|
|
|
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
|
|
|
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
2015-09-26 01:16:55 +00:00
|
|
|
|
|
|
|
// handle falling unconscious
|
2016-06-03 18:57:21 +00:00
|
|
|
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
2015-06-04 19:13:44 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
// @todo captivity?
|