mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
dfa0e68e7b
* 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>
21 lines
427 B
Plaintext
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
|