2015-01-30 20:32:21 +00:00
|
|
|
/*
|
2015-02-01 20:56:19 +00:00
|
|
|
* Author: Pabst Mirror (based on Explosive attach by Garth de Wet (LH))
|
|
|
|
* Cancels placement of the lightObject
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-30 20:32:21 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (GVAR(pfeh_running)) then {
|
2015-02-01 20:56:19 +00:00
|
|
|
[QGVAR(PlacementEachFrame),"OnEachFrame"] call BIS_fnc_removeStackedEventHandler;
|
|
|
|
GVAR(pfeh_running) = false;
|
2015-01-30 20:32:21 +00:00
|
|
|
};
|
|
|
|
if (!isNull (GVAR(setupObject))) then {
|
2015-02-01 20:56:19 +00:00
|
|
|
deleteVehicle GVAR(setupObject);
|
2015-01-30 20:32:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
[GVAR(placer), QGVAR(vehAttach), false] call EFUNC(common,setForceWalkStatus);
|
|
|
|
call EFUNC(interaction,hideMouseHint);
|
|
|
|
[GVAR(placer), "DefaultAction", GVAR(placer) getVariable [QGVAR(placeActionEH), -1]] call EFUNC(common,removeActionEventHandler);
|
|
|
|
[GVAR(placer), "MenuBack", GVAR(placer) getVariable [QGVAR(cancelActionEH), -1]] call EFUNC(common,removeActionEventHandler);
|
|
|
|
|
|
|
|
GVAR(placer) = objNull;
|
2015-02-01 20:56:19 +00:00
|
|
|
GVAR(SetupPlacmentItem) = "";
|
|
|
|
GVAR(SetupPlacmentText) = "";
|
|
|
|
GVAR(setupObject) = objNull;
|
|
|
|
GVAR(SetupAttachVehicle) = objNull;
|