Jump to content
Sign in to follow this  
redface

[units group] join group

Recommended Posts

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

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

thanks ACF the brackets make the difference indeed ...

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  

×