Jump to content
Sign in to follow this  
Lucky44

Why is only the first spawned group following waypoints?

Recommended Posts

I'm trying to spawn a varied number of groups and send them all along the same waypoints. The only problem I'm having is that only the first spawned group will follow the waypoints; the others just stand at the spawn area. I know it must be something about naming the groups and referring to those names, but I've tried a variety of things and nothing is working. What am I doing wrong?

In the code, _hSquads is a number scaled to the number of players.

for "_x" from 1 to _hSquads do {

_squad1 = [_spawnPt, EAST, 8] call BIS_fnc_spawnGroup; 

_wp0 = _squad1 addWaypoint [ _WP1, 1];	// set location and radius
_wp0 setWaypointType "MOVE"; // set WP type here
_wp0 setWaypointStatements ["true", ""]; // ?

_wp1 = _squad1 addWaypoint [_WP2, 3];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointStatements ["true", ""];

_wp2 = _squad1 addWaypoint [_WP3, 3];
_wp2 setWaypointType "MOVE";
_wp2 setWaypointStatements ["true",""];

}:

EDIT: Well, I realized the problem was I'd changed some waypoint names and painted myself into a corner. Problem solved by renaming the waypoints!

Thanks in advance!

Edited by Lucky44
Found the problem

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
Sign in to follow this  

×