Jump to content
Sign in to follow this  
AfrographX

How to adress specific cargo position?

Recommended Posts

Hi,

I want two Inivisible-units to move into specific positions. And when requested one of these units should disembark again.

Is it possible to address a specific cargo position in a script?

Or is it possible to disembark only a unit from a specific type?

Share this post


Link to post
Share on other sites

Just fill the cargo positions with game logics until you reach the ones your interested it. Move your units in, then eject and delete the game logics.

Do the same again to remove a unit from a specific position. Fill all the empty cargo positions with game logics,locate the position your after using:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(Crew _Vehicle) Select _CargoPos

Then eject and delete all the logics you added.

If the units you want to remove are of a specfic type, you can locate them using the typeof command instead.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{If (TypeOf _x==_MyType) Then {.........}} ForEach (Crew _Vehicle)

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  

×