Jump to content
Sign in to follow this  
Javito1986

Basic, silly question but...

Recommended Posts

I can't for the life of me remember and since Ofpec.com is down at the moment I can't look it up. How do I make a squad start out INSIDE an APC/Helicopter/Plane/Whatever? I remember something about _assignascargo but that's about it... crazy_o.gif

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">soldier moveInCargo vehicle

Operand types:

soldier: Object

vehicle: Object

Type of returned value:

Nothing

Description:

Move soldier into vehicle cargo position. (Immediate, no animation).

Example:

soldierOne moveInCargo jeepOne

From:

Official ComRef

Also, check the pinned threads at the top, they can usually help you a lot. They don't really take the place of OFPEC, but they can be a good hold over until it's back up.

Share this post


Link to post
Share on other sites

Or you could simply just make a vehicle part of the squad and set all of their status things (can't remember name) to in cargo, instead of fromation.

Share this post


Link to post
Share on other sites

Place a vehicle (Chopper/truck/APC/boat/..whatever) and give it a name (in this example XXX)

Place a group and write this in the Init-Line of the group-leader:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">grp=group this; "_x moveincargo XXX" foreach units group this;

That's it  smile_o.gif

Mfg MEDICUS

Share this post


Link to post
Share on other sites

To extrapolate on this, is there a way to assign specific units to specific cargo positions within the vehicle? Say if I wanted my player to be in the front seat with the driver instead of in the back? Normally, my player just gets dumped in the back with the rest of the squad and the highest ranking AIs sit up front.

Share this post


Link to post
Share on other sites

Hellfish, this depends only on the timing.

The first unit put into cargo will be the one sitting

in the driver's cabin.

You could do: player moveinCargo xxx

followed by all other's moveinCargo xxx

P.S: not sure if "_x moveinCargo xxx" forEach units would

reorganize the seats again (means that player would get a

new set), but if so: just moveinCargo xxx each guy seperately

by a trigger, executed after the player moveinCargo.

~S~ CD

Share this post


Link to post
Share on other sites

I knew that, but I'm making a mission where a trigger is activated once the player gets near to a jeep and his team is automatically loaded into the jeep (to avoid unnecessary use of group commands) and then the player has to order himself in the jeep.

If there's no easy answer for this, then I'll probably just autoload my guy into it like you mentioned, and skip the action menu part. crazy_o.gif

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  

×