ACE3/addons/missileguidance/functions/fnc_doSeekerSearch.sqf

11 lines
437 B
Plaintext
Raw Normal View History

2015-04-08 15:01:39 +00:00
#define DEBUG_MODE_FULL
#include "script_component.hpp"
EXPLODE_7_PVT((_this select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
private["_targets", "_foundTargetPos"];
_targets = [_projectile, ACE_DEFAULT_LASER_CODE, 70, (velocity _projectile)] call ace_laser_fnc_findLaserDesignator;
_foundTargetPos = getPosASL (_targets select 1);
TRACE_1("Seeker return target pos", _foundTargetPos);
_foundTargetPos;