mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
20 lines
431 B
Plaintext
20 lines
431 B
Plaintext
//diag_log format["isLanded called, _this: %1", _this];
|
|
private _vehicle = _this select 0;
|
|
private _returnValue = false;
|
|
|
|
private _altitude = (getPosATL _vehicle) select 2;
|
|
private _isSlow = true;
|
|
{
|
|
if (_x > 0.5) then
|
|
{
|
|
_isSlow = false;
|
|
}
|
|
} forEach (velocity _vehicle);
|
|
|
|
if (_isSlow && (_altitude < 1)) then
|
|
{
|
|
_returnValue = true;
|
|
};
|
|
|
|
//diag_log format["isLanded returning: %1", _returnValue];
|
|
_returnValue |