mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
387 B
Plaintext
24 lines
387 B
Plaintext
/*
|
|
* Author: Garth 'L-H' de Wet
|
|
* Cancels explosives placement.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
* 1: Key <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [unit, 1] call ace_explosives_fnc_cancelPlacement
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit", "_key"];
|
|
|
|
if (_key != 1 || {!GVAR(pfeh_running)}) exitWith {};
|
|
|
|
GVAR(placeAction) = PLACE_CANCEL;
|