Jump to content

Recommended Posts

Hi, I'm doing a script for a training mission.

What I want is for a vehicle to be spawned, for a driver to be spawned, and for him to drive until coordinates.

This is the code I have, and I can't get it to lead to the coordinates.

hint "Cargando mision Vehiculos en movimiento";
sleep 2;

_veh1 = "rhsgref_cdf_b_gaz66" createVehicle [1557.3,1711.01,0];
createVehicleCrew _veh1;
sleep 5;
_veh2 = "rhsgref_cdf_b_reg_uaz" createVehicle [1605.63,1670.2,0];
createVehicleCrew _veh2;
sleep 5;

hint "Mision 2 Terminada"

Thanks for the help

Share this post


Link to post
Share on other sites

_grp1 = [[1557.3,1711.01,0], INDEP, ["rhsgref_cdf_b_gaz66"],[],[],[],[],[],0] call BIS_fnc_spawnGroup;  // you can choose your side

_grp1 addWaypoint [<your coordinate here>,0];

 

Same for the second vehicle. You can add it to the 1st group (in the array of class) or create another group.

Share this post


Link to post
Share on other sites
On 4/10/2020 at 9:05 AM, pierremgi said:

_grp1 = [[1557.3,1711.01,0], INDEP, ["rhsgref_cdf_b_gaz66"],[],[],[],[],[],0] call BIS_fnc_spawnGroup;  // you can choose your side

_grp1 addWaypoint [<your coordinate here>,0]; 

 

Same for the second vehicle. You can add it to the 1st group (in the array of class) or create another group.

Thanks 🙂

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×