arma3_missions/helotraining_rewrite.Altis/playerVehicleInList.sqf
2016-07-24 23:17:24 +03:00

17 lines
472 B
Plaintext

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) && (isTouchingGround _veh) && (_veh in _triggerList) ) then
{
_returnValue = _veh;
breakTo "main";
}
} forEach BIS_fnc_listPlayers;
diag_log format["playerVehicleInList returning: %1", _returnValue];
_returnValue