TheJokerMan 0 Posted September 29, 2006 hi i am wondering how to join a group of 8 US soldiers with 2 civilians, first of all i dont even know how to make a group. is it something like this? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">grp1=group this but anyways i can join them somewhat already, the group leaders name is ws9, so i put[/code][civ1, civ2] join ws9 and that works, but what if ws9 is disabled in the multiplayer selection screen. then they wouldnt join anyone. how would i make them join the leader, whoever he may be, of the 8 US soldiers group? Share this post Link to post Share on other sites
Metal Heart 0 Posted September 29, 2006 That is the usual way to define a name for a certain group. To be on the safe side you could have grp1=group this on every unit's init line that belongs to the group in case a slot gets disabled. Join command works with a unit or a group so you can just command: [civ1, civ2] join grp1 or units civgroup join grp1 And that's pretty much it. Share this post Link to post Share on other sites
TheJokerMan 0 Posted October 1, 2006 thanks dude! hey i got other question about groups now/ How do I make a trigger hit only when a member of a group enters it? ------- i know what you will say, make the trigger and then link the trigger to the group...... but we all know that this is the worst way possible to do that so i am wonder, what would i write in the condition line to let the trigger know when a member of grp1 is present? Share this post Link to post Share on other sites
Metal Heart 0 Posted October 1, 2006 What's wrong in grouping the trigger with the group, it does the job just fine as far as I know. That's how I would do it. Or if I was worried about some bug or bad performance I'd have a script like: #loop ~5 ?{_x distance glName < 100} count units grp1 == 0 : goto "loop" "1" objStatus "done" exit Share this post Link to post Share on other sites