mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
add better error messaging
This commit is contained in:
parent
f4152ec057
commit
e46cd2c97b
@ -90,8 +90,8 @@ if ((_pitchRate != 0 || {_yawRate != 0})) then {
|
||||
private _commandedAcceleration = [_args, _timestep, _seekerTargetPos, _profileAdjustedTargetPos, _targetData, _navigationParameters] call (missionNamespace getVariable _navigationFunction);
|
||||
|
||||
if (isNil "_commandedAcceleration") exitWith {
|
||||
systemChat format ["Error in %1", _navigationFunction];
|
||||
ERROR_MSG("_commandedAcceleration is nil! Guidance cancelled");
|
||||
systemChat format ["Error in %1 Missile Type %2", _navigationFunction, typeOf _projectile];
|
||||
ERROR_MSG_2("_commandedAcceleration is nil! Guidance cancelled [%1 %2]",_navigationFunction,typeOf _projectile);
|
||||
};
|
||||
|
||||
if (GVAR(debug_drawGuidanceInfo)) then {
|
||||
|
Loading…
Reference in New Issue
Block a user