View Full Version : How do I refer to units in a cargo?
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"?
Big Dawg KS
Dec 14 2006, 19:55
Use crew (http://community.bistudio.com/wiki/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][/QUOTE]
And cargo would be an array of all the units in the vehicle's cargo.
Thx mate much appreciated! http://forums.bistudio.com/oldsmileys/smile_o.gif
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.