2015-01-12 09:48:26 +00:00
|
|
|
/*
|
2015-02-02 08:35:17 +00:00
|
|
|
* Author: Garth 'L-H' de Wet
|
|
|
|
* Cancels placement of the explosive
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ACE_Explosives_fnc_place_Cancel;
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-13 21:21:31 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-12 09:48:26 +00:00
|
|
|
if (GVAR(pfeh_running)) then {
|
2015-04-06 20:20:11 +00:00
|
|
|
[QGVAR(Placement),"OnEachFrame"] call CALLSTACK(BIS_fnc_removeStackedEventHandler);
|
|
|
|
GVAR(pfeh_running) = false;
|
2015-01-12 09:48:26 +00:00
|
|
|
};
|
|
|
|
if (!isNull (GVAR(Setup))) then {
|
2015-04-06 20:20:11 +00:00
|
|
|
deleteVehicle GVAR(Setup);
|
2015-01-12 09:48:26 +00:00
|
|
|
};
|
|
|
|
GVAR(Setup) = objNull;
|
|
|
|
if (isNil {GVAR(placer)}) then {
|
2015-04-06 20:20:11 +00:00
|
|
|
GVAR(placer) = objNull;
|
2015-01-12 09:48:26 +00:00
|
|
|
};
|
2015-01-12 20:39:37 +00:00
|
|
|
[GVAR(placer), "ACE_Explosives", false] call EFUNC(Common,setForceWalkStatus);
|
2015-01-12 09:48:26 +00:00
|
|
|
GVAR(placer) = objNull;
|
2015-01-15 19:13:12 +00:00
|
|
|
call EFUNC(interaction,hideMouseHint);
|
2015-01-12 20:39:37 +00:00
|
|
|
[ACE_player, "DefaultAction", ACE_player getVariable [QGVAR(Place), -1]] call EFUNC(Common,removeActionEventHandler);
|
2015-04-01 18:43:18 +00:00
|
|
|
[ACE_player, "zoomtemp", ACE_player getVariable [QGVAR(Cancel), -1]] call EFUNC(Common,removeActionEventHandler);
|