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:
@ -90,8 +90,8 @@ if ((_pitchRate != 0 || {_yawRate != 0})) then {
|
|||||||
private _commandedAcceleration = [_args, _timestep, _seekerTargetPos, _profileAdjustedTargetPos, _targetData, _navigationParameters] call (missionNamespace getVariable _navigationFunction);
|
private _commandedAcceleration = [_args, _timestep, _seekerTargetPos, _profileAdjustedTargetPos, _targetData, _navigationParameters] call (missionNamespace getVariable _navigationFunction);
|
||||||
|
|
||||||
if (isNil "_commandedAcceleration") exitWith {
|
if (isNil "_commandedAcceleration") exitWith {
|
||||||
systemChat format ["Error in %1", _navigationFunction];
|
systemChat format ["Error in %1 Missile Type %2", _navigationFunction, typeOf _projectile];
|
||||||
ERROR_MSG("_commandedAcceleration is nil! Guidance cancelled");
|
ERROR_MSG_2("_commandedAcceleration is nil! Guidance cancelled [%1 %2]",_navigationFunction,typeOf _projectile);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (GVAR(debug_drawGuidanceInfo)) then {
|
if (GVAR(debug_drawGuidanceInfo)) then {
|
||||||
|
Reference in New Issue
Block a user