Jump to content
Sign in to follow this  
Skul

Becoming a leader

Recommended Posts

I'm creating a mission where I want the player to become the leader of the squad in a vehicle. Like when he enters a 5t Truck, he becomes that squad's leader, or when he enters an M113 he becomes THAT squad's leader. The mission is for variety. You can go in a 5t Truck, an M113 or an M1A1 tank. But I want to know how to make all the mukkas in the vehicle follow me. I forgot the command for this.

TIA

Share this post


Link to post
Share on other sites

Name the truck, then type this in your player's INIT line:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this moveincommander "mytank"<span id='postcolor'>

You can use this same code for making you or any other unit a gunner or driver

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this moveingunner "myplane"<span id='postcolor'>

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this moveindriver "myhelo"<span id='postcolor'>

This question was answered many times before Skul, you could have searched the forums or looked inthis thread instead of creating a whole new thread for a simple question that has been answered already. wink.gif

thumbs-up.gif

-iCe

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">when he enters a 5t Truck, he becomes that squad's leader, or when he enters an M113 he becomes THAT squad's leader.<span id='postcolor'>

I know the movein command. Read the quote.

Share this post


Link to post
Share on other sites

You can try it with the join commnad

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[mukka1] join player<span id='postcolor'>

I know doing that for every soldier on the group its a pain in the ass; I mean, you should type that command using groups instead of units joining the player, but don't know the propper syntax. Sorry

If you want to detach a group from you, there's no detach command, so you must make them join another unit or group. To prevent useless AI population you can have empty groups. Try this example:

Create a unit somewhere on the map, name it ("empty1" eg) and type on the init field:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Egrp1 = Group This; DeleteVehicle empty1 <span id='postcolor'>

The unit will be removed but the group will remain, so you can use it to attach units.

Hope that helps,

Regards

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  

×