This script allows you to spawn in random civilian traffic.
How to use it:
1.) Copy / Past the FP folder from the sample mission in virtual reality
2.) Copy / Past the trigger to your mission and place it, where you want the players to be, to spawn in civilian traffic (e.g. a city).
------------------------------
For script-editors:
Trigger
thisTrigger: do not change that part, this refers to the trigger
4: Number of vehicles, you can increase or decrease that, for instance _nil = [thisTrigger,99] execVM "FP\civtraf\civtraf.sqf"; will spawn in 99 vehicles.
Code
Code
//this is a list of all cars. Just copy / past more classnames into this array, to get different vehicles.
_civcar = ["C_Offroad_01_F","C_Offroad_01_sand_F","C_Offroad_luxe_F","C_Quadbike_01_F","C_Truck_02_covered_F","C_Truck_02_transport_F","C_Truck_02_box_F","C_Van_01_transport_F"];
_pos1 = [getpos (_zoneplayers select 0), 3000, 5000, 10, 0, 0.7, 0, [_zoneplayers], []] call BIS_fnc_findSafePos;
_pos2 = [getpos (_zoneplayers select 0), 3000, 5000, 10, 0, 0.7, 0, [_zoneplayers], []] call BIS_fnc_findSafePos;
_pos3 = [getpos (_zoneplayers select 0), 7000, 12000, 10, 0, 0.7, 0, [_zoneplayers], []] call BIS_fnc_findSafePos;
-
Version
- 2.68 kB
- 54 Downloads