Jump to content
Sign in to follow this  
Vänskä

How do I refer to units in a cargo?

Recommended Posts

How can I refer to units in a cargo like I can refer to units in a driver, gunner, commander or turret seats.

For example: player == driver myvehicle

How do I do this for those "riding on back"?

Share this post


Link to post
Share on other sites

Use crew and subtract the driver, gunner, and commander:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">cargo = (crew vehicle) - [driver vehicle,gunner vehicle,commander vehicle]

And cargo would be an array of all the units in the vehicle's cargo.

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  

×