Jump to content
trollzor45

Vehicle and crew created via script wont follow waypoints

Recommended Posts

I'm attempting to have a truck drive up, and the crew dismount, then wander around the area for cosmetic effect (HQ tells the players a team was sent to pick something up).

I started with a simple script :

_crew = createGroup WEST;
_truck = [getMarkerPos "truckSpawn", 250, "rhsusf_M977A4_BKIT_usarmy_d", _crew] call BIS_fnc_spawnVehicle;

_wp1 = _crew addWaypoint[(getMarkerPos "truckStop"), -1];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointBehaviour "SAFE";

Makes a crew, adds it to a truck, spawns the truck, then SUPPOSEDLY gives said crew of truck a waypoint at an invisible marker.
Thing is, I only ever got this to work A SINGLE TIME. After this, I tried to make a larger group fit in the truck. I got compile errors, reverted the changes, and now the truck simply doesn't move at all.

I guess this is kind of 2 questions :
1. WHY is my truck not moving at all?
2. How could I spawn more than one person in a vehicle at a time? (I know there's a method messing with CfgWeapons or something but that seems a little over the top for a purely cosmetic event)

Share this post


Link to post
Share on other sites

Found the solution to my trucks not moving, I had changed the invisible marker's name without realizing. I would still want to know if I could put more people in the trucks, though.

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

×