-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
872b13f
commit e0ad65d
Showing
20 changed files
with
206 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
_marcador = [marcadores,player] call BIS_fnc_nearestPosition; | ||
|
||
_lado = side player; | ||
_nombre = if (_lado == malos) then {nameMalos} else {nameMuyMalos}; | ||
|
||
if (((_lado == malos) and (not(lados getVariable [_marcador,sideUnknown] == malos))) or ((_lado == muyMalos) and (not(lados getVariable [_marcador,sideUnknown] == muyMalos)))) exitWith {hint "You need to be close to an Airbase, Seaport or Outpost of your side in order to request a bike"}; | ||
if ((!(_marcador in aeropuertos)) and (!(_marcador in puertos)) and (!(_marcador in puestos))) exitWith {hint "You need to be close to an Airbase, Seaport or Outpost of your side in order to request a bike"}; | ||
if (not(player inArea _marcador)) exitWith {hint "You need to be close to an Airbase, Seaport or Outpost in order to request a bike"}; | ||
if (lados getVariable [_marcador,sideUnknown] != _lado) exitWith {hint format ["You need to be close to a zone belonging to %1 in order to request a vehicle",_nombre]}; | ||
if ((!(_marcador in aeropuertos)) and (!(_marcador in puertos)) and (!(_marcador in puestos))) exitWith {hint "You need to be close to an Airbase, Seaport or Outpost of your side in order to request a vehicle"}; | ||
if (not(player inArea _marcador)) exitWith {hint "You need to be close to an Airbase, Seaport or Outpost in order to request a vehicle"}; | ||
|
||
_tipoBike = if (_lado == malos) then {vehNATOBike} else {vehCSATBike}; | ||
_tipoBike = if (_lado == malos) then {selectRandom vehNATOLightUnarmed} else {selectRandom vehCSATLightUnarmed}; | ||
|
||
if (!isNull moto) then | ||
{ | ||
if (moto distance player < 100) then {deleteVehicle moto}; | ||
}; | ||
|
||
hint "Quadbike available"; | ||
moto = createVehicle [_tipoBike, position player, [], 10, "NONE"]; | ||
hint "Vehicle available"; | ||
_pos = []; | ||
_radius = 10; | ||
while {_pos isEqualTo []} do | ||
{ | ||
_pos = (position player) findEmptyPosition [5,_radius,"I_Truck_02_covered_F"]; | ||
_radius = _radius + 10; | ||
}; | ||
moto = createVehicle [_tipoBike,_pos, [], 10, "NONE"]; | ||
|
||
[moto] call AIVEHinit; |
Oops, something went wrong.