mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix #4007 - Handle bad target when using apex titans
This commit is contained in:
@ -14,6 +14,8 @@ private["_seeker", "_seekerPos", "_target", "_targetPos", "_return", "_vectorTo"
|
|||||||
_seeker = _this select 0;
|
_seeker = _this select 0;
|
||||||
_target = _this select 1;
|
_target = _this select 1;
|
||||||
|
|
||||||
|
if ((isNil "_seeker") || {isNil "_target"}) exitWith {false};
|
||||||
|
|
||||||
_targetPos = getPosASL _target;
|
_targetPos = getPosASL _target;
|
||||||
_seekerPos = getPosASL _seeker;
|
_seekerPos = getPosASL _seeker;
|
||||||
_return = true;
|
_return = true;
|
||||||
|
@ -70,6 +70,12 @@ if(isNil "_target") then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//ToDo: Add correct configs for new apex titans (in ace_javelin)
|
||||||
|
if ((isNil "_target") && {(_weapon == "launch_B_Titan_short_tna_F") || {_weapon == "launch_O_Titan_short_ghex_F"}}) then {
|
||||||
|
ACE_LOGWARNING_1("APEX Launcher [%1] not supported - Wait for ACE 3.6.1",_weapon);
|
||||||
|
if (!isNull cursorObject) then {_target = cursorObject;}; //Attempt to give some kind of target or it will
|
||||||
|
};
|
||||||
|
|
||||||
TRACE_4("Beginning ACE guidance system",_target,_ammo,_seekerType,_attackProfile);
|
TRACE_4("Beginning ACE guidance system",_target,_ammo,_seekerType,_attackProfile);
|
||||||
_args = [_this,
|
_args = [_this,
|
||||||
[_shooter,
|
[_shooter,
|
||||||
|
Reference in New Issue
Block a user