starstreams 0 Posted December 25, 2002 I’ve got 12 guys for the West “one of them being the leader†Now I’ve got (four) empty tanks sitting and I would like the AI leader to divide up the 12 men so that each tank gets 3 men and then drives to the final unloading zone. I can do this fine with 3 guys using one tank but how do I do it with three? I’m not sure how to set up the way points so that the 12 men all go in different tanks and then drive to there final location? Share this post Link to post Share on other sites
Bart.Jan 0 Posted December 25, 2002 Name your tanks : t1,t2,t3,t4 Then put into init line of your soldiers : this assignasdriver t1 this assignasgunner t1 this assignascommander t1 Every line for different soldier, for another 3 soldiers use t2 instead of t1 and for last 3 men use t3. Make get in waypoint near tanks and leader will send soldiers to their assigned positions. Share this post Link to post Share on other sites
starstreams 0 Posted December 26, 2002 hello bart.Jan I’m going to try that but one question please. What if I’m also using a Blackhawk chopper to carry them, how should the INT line read for that? You gave me me 3 int lines for tanks but I’m not too sure what to put in the int field of  a backhawk if I wanted some of the men to be in the back as passengers Share this post Link to post Share on other sites
toadeater 0 Posted December 26, 2002 The assignAs command tells the unit to board whatever you assign it to. You don't need to put it in an init unless that's how you want to the unit to start out. You can put the command in a trigger, in a waypoint, or a script. So if you named your helicopter chopper1 or something, you'd tell someone to board it like this: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Someguy assignAscargo chopper1<span id='postcolor'> and Someguy would board the chopper. If you want units to start out in a vehicle, you use the moveIn command, which is instantaneous. Hope this made sense. Share this post Link to post Share on other sites
starstreams 0 Posted December 27, 2002 I’ve got the way points set up, but when you say to use the Someguy assignAscargo command. Doses that mean I need to name each guy something different? Also dose Someguy assignAscargo chopper1) have to have the name chopper1? becosue I diden't name the chopers chopper1, I named them P1, short for (Plain1) Either way I’m having a problem with the way points for some reason. Here is what happens. Just to keep things simple I am only using 4 guys now. When the game starts the officer tells the men to get in the plain then flys them to the safe landing zone where there are empty trucks. For some reason, as soon as the men disembark from the officers command instead of the officer telling them to get in the truck, he tells them to get back into the Blackhawk. This doesn’t make sense becouse the way point over the chopper is set to (Get Out) which connects to the empty truck which which have a way point over it set to (Get IN). So what I mean is the units are suppose to get in the empty truck after disembarking from the truck but then why the hell is the officer telling them to get back in the black hulk when they just got out of the Blackhawk? Share this post Link to post Share on other sites
ralphwiggum 6 Posted December 27, 2002 someguy unassignvehicle choppername and do it for all soldiers that needs to get off of chopper, and go in to enmpty truck. this should be done after they get off from chopper and before they ride vehicle. my suggestion is you make a trigger that detects west between the chopper and the truck and in condition line go soldier1 unassignvehicle chooper;soldier2 unassignvehicle chooper; and do that until you have all the soldiers from soldier1 to soldier12 *soldier1, and so forth are names of the soldiers. Share this post Link to post Share on other sites
toadeater 0 Posted December 28, 2002 Right, you need to unassign them first I guess, then assign them to the truck. This may require a few commands if you're really going to be splitting them up into seperate groups. It doesn't matter what names you use as long as they match whatever the units are called. So, if you're going to seperate them from their group, remember to group them together around a new leader using the join command. First, seperate the leader into a new group like this: [newLeader] join grpNull You have to use the name grpNull in this case, it means you want the unit to join an empty group and become his own group. Now that he's a new group you have the rest join him: [unit1, unit2] join newLeader If you need to, you can name the new group like this: newgroupname = group newLeader Now you can just use newgroupname for them, instead of the old leader's group. Then you can use this: "unassignvehicle _x" foreach units newgroupname to issue the command to every unit in the group. Hopefully this will give you some ideas with what you can do. You can use "command _x" foreach units with any named group to issue an order to every unit in the group. But wait...there's one more, if you don't want to name the group and have only the leader named, then you can use: "unassignvehicle _x" foreach units group newLeader This works because when you seperated newLeader from the original, he became a new group and won't follow the old leader's or groups waypoints or commands anymore. So you have a choice in how to organize the units, as long as you at least have the name of the group's leader. Doing it this way, you can split the original group in two and they'll no longer follow any commands or waypoints assigned to the old group. Share this post Link to post Share on other sites