ACE3/addons/missileguidance/functions/fnc_onIncomingMissile.sqf
2016-05-30 18:37:03 +02:00

8 lines
297 B
Plaintext

//#define DEBUG_MODE_FULL
#include "script_component.hpp"
PARAMS_3(_target,_ammo,_shooter);
if(GVAR(enabled) < 1) exitWith {}; // bail if enabled
if !(local (gunner _shooter) || {local _shooter}) exitWith {}; // bail if not shooter
_shooter setVariable [QGVAR(vanilla_target),_target, false];