2016-07-26 08:23:07 +00:00
|
|
|
// TODO: Rename this function, since it checks for the landing status too
|
2016-07-25 23:01:42 +00:00
|
|
|
//diag_log format["playerVehicleInList called, _this: %1", _this];
|
2016-07-24 20:17:24 +00:00
|
|
|
private _triggerList = _this select 0;
|
|
|
|
private _returnValue = false;
|
|
|
|
|
|
|
|
scopeName "main";
|
|
|
|
{
|
|
|
|
private _plr = _x;
|
|
|
|
private _veh = vehicle _plr;
|
2016-07-26 01:16:03 +00:00
|
|
|
if ( (_plr != _veh) && ([_veh] call isLanded) && (_veh in _triggerList) ) then
|
2016-07-24 20:17:24 +00:00
|
|
|
{
|
|
|
|
_returnValue = _veh;
|
|
|
|
breakTo "main";
|
|
|
|
}
|
2016-07-26 08:23:07 +00:00
|
|
|
} forEach ([] call getAlivePlayers);
|
2016-07-24 20:17:24 +00:00
|
|
|
|
2016-07-26 01:16:03 +00:00
|
|
|
//diag_log format["playerVehicleInList returning: %1", _returnValue];
|
2016-07-24 20:17:24 +00:00
|
|
|
_returnValue
|