Jump to content

Recommended Posts

Ok so i create the Group East and spawn 2 cars, and with createVehicleCrew i create the crew for that vehicle and join them to 1 group.

But it creates 3 groups. 1st group that is created there are 2 vehicles and machinge gunners with a move waypoint but on 2nd and 3rd group creates only drivers with no way points so that is why convoy is not moving.

Is there anyway  to join the drivers to the frist group as well. Example Code:

_convoyGroup = createGroup [east,true];

for "_i" from 1 to 2 do
{
	_newVeh = "rhs_tigr_sts_msv" createVehicle getPos Convoy_Start;
	createVehicleCrew _newVeh;
	[_newVeh] joinSilent _convoyGroup;	
	sleep 0.5;
};

_wp =_convoyGroup addWaypoint [getPos Convoy_End, 0];
_wp setWaypointBehaviour "SAFE";
_wp setWaypointFormation "COLUMN";  

I have try it out on Vanilla vehicles and that works but on RHS it doesn't.

Share this post


Link to post
Share on other sites

Ok Never mide guys i manage to fix it here is the fix:

 

_convoyGroup = createGroup [east,true];

for "_i" from 1 to 2 do
{
	_newVeh = "rhs_tigr_sts_msv" createVehicle getPos Convoy_Start;
	createVehicleCrew _newVeh;
	_driver = driver _newVeh;	
	[_newVeh,_driver] joinSilent _convoyGroup;	
	sleep 0.5;
};

_wp =_convoyGroup addWaypoint [getPos Convoy_End, 0];
_wp setWaypointBehaviour "SAFE";
_wp setWaypointFormation "COLUMN";  

 

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

×