arma3_missions/helotraining_mp.Altis/isLanded.sqf
Eero af Heurlin dfa0e68e7b
Merge mijas improvements and my fixes (#8)
* mija changes (#7)

mijas changes

* separate players into their own groups

* fix some leftover typos and sort actions by priority

Co-authored-by: mija <i.see.living.people@gmail.com>
2021-06-24 17:16:32 +03:00

21 lines
427 B
Plaintext

//diag_log format["isLanded called, _this: %1", _this];
private _vehicle = _this select 0;
private _returnValue = false;
private _altitude = (getPos _vehicle) select 2;
private _isSlow = true;
{
if (_x > 4) then
{
_isSlow = false;
}
} forEach (velocity _vehicle);
if (_isSlow && (_altitude < 4)) then
{
_returnValue = true;
};
//diag_log format["isLanded returning: %1", _returnValue];
_returnValue