Jump to content
Sign in to follow this  
Royal_Blackwatch

Array of all vehicles?

Recommended Posts

I´m currently working on a mission and need an array were all the Refuel Trucks of my side are listed, not just those of my squad (not the amount of them). Is there a way to handle this?

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 (Royal_Blackwatch @ Feb. 16 2002,05:20)</td></tr><tr><td id="QUOTE">I´m currently working on a mission and need an array were all the Refuel Trucks of my side are listed, not just those of my squad (not the amount of them). Is there a way to handle this?<span id='postcolor'>

assuming you don't have *too* many of these to deal with, name them something like "Repair1, Repair2" and so on, add the following to your init.sqs...

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

RepairArray = [Repair1, Repair2, ...Repairn]

<span id='postcolor'>

Don't forget the array is 0-based wink.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  

×