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