Merge pull request #2527 from alef/issues/titan_miss

Fix: Titan hitting ground instead of vehicle
This commit is contained in:
Glowbal 2015-10-18 12:11:09 +02:00
commit 3682a1710b

View File

@ -17,7 +17,7 @@ TRACE_1("", _launchParams);
// TODO:: Make sure the missile maintains LOS
_foundTargetPos = [0,0,0];
if(!isNil "_target") then {
_foundTargetPos = getPosASL _target;
_foundTargetPos = aimPos _target ;
//_foundTargetPos = (_target modelToWorldVisual (getCenterOfMass _target));
};
@ -48,4 +48,4 @@ if(!_angleOkay || !_losOkay) then {
};
_foundTargetPos;
_foundTargetPos;