redface 1 Posted December 8, 2004 I want to take advantage of randomly spawning groups without giving each individual unit a name but I encounter the following problem: the join command asks for an array (of units?) [x,y,z] join grpfirst I want random groups (jumping from helicopters, trucks) to reinforce (thus join) an existing group while defending a base but these units don't have names and can only be called by "units grpsecond" <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[units grpsecond] join grpfirst gives an error for clarity's sake: I want to use the "join-" command so that they follow the "hold"-waypoint of the original group is this impossible, or do I need to use another command? Share this post Link to post Share on other sites
ACF 0 Posted December 8, 2004 Easy trap this one: Units grpsecond is already an array of units, [units grpsecond] is an array in with one element that is an array of units. That's what's giving rise to the error. Whatever, just use: Units grpsecond Join grpfirst Or to be really, really safe, force the Units command to run first: (Units grpsecond) Join grpfirst Share this post Link to post Share on other sites
Sophion-Black 0 Posted December 8, 2004 I guess you can make the leader join the squad, like: [grpleader] join 2grpleader i never tried it though Share this post Link to post Share on other sites
redface 1 Posted December 8, 2004 thanks ACF the brackets make the difference indeed ... Share this post Link to post Share on other sites