mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
18 lines
555 B
Plaintext
18 lines
555 B
Plaintext
// TODO: Rename this function, since it checks for the landing status too
|
|
//diag_log format["playerVehicleInList called, _this: %1", _this];
|
|
private _triggerList = _this select 0;
|
|
private _returnValue = false;
|
|
|
|
scopeName "main";
|
|
{
|
|
private _plr = _x;
|
|
private _veh = vehicle _plr;
|
|
if ( (_plr != _veh) && ([_veh] call isLanded) && (_veh in _triggerList) ) then
|
|
{
|
|
_returnValue = _veh;
|
|
breakTo "main";
|
|
}
|
|
} forEach ([] call getAlivePlayers);
|
|
|
|
//diag_log format["playerVehicleInList returning: %1", _returnValue];
|
|
_returnValue |