ACE3/addons/missileguidance/functions/fnc_onIncomingMissile.sqf

8 lines
297 B
Plaintext
Raw Normal View History

2016-05-30 16:37:03 +00:00
//#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
2015-04-15 01:25:02 +00:00
_shooter setVariable [QGVAR(vanilla_target),_target, false];