Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
hobson_matt

Rearming?

Recommended Posts

Hi,

i am creating a Gulf war mission in which there is a full on assault on the Iraqi border, is it possible for me to re-arm my tanks after the front line? i Know i can set healh to full, but can i set ammo back to how it was at the beginning?

Share this post


Link to post
Share on other sites

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

unit addMagazine weaponName

Operand types:

   unit: Object

   weaponName: String

Type of returned value:

   Nothing

Description:

   Add magazine to unit. Note: you may create invalid combinations with this function like 20 grenades. When doing so, application behaviour is undefined.

Example:

   player addMagazine "M16"

<span id='postcolor'>

Share this post


Link to post
Share on other sites

i know about this command and have used it for infantry, can i use it for tanks? if so where is the list of ammo names?

Share this post


Link to post
Share on other sites

Why don't you try and find out? tounge.gif As for the weapon names, it's one of the Shell and Heat weapons. Just look at the names under the comref. I don't remember which size of shell or heat it is though, you'll have to check them out.

Share this post


Link to post
Share on other sites

You could also put in a few ammo trucks(under the support menu) and give them support waypoints. Whenever a squad/tank group needs ammo they'll call for support and the ammo truck will go to them.

Share this post


Link to post
Share on other sites

Never knew that about the support waypoint, was thinking of making some choppers bring support vehicles underneath to the area, would prefer to be able to have more control over the re-arming tho, have still not found a list of ammo

Share this post


Link to post
Share on other sites

Why when i try to set a waypoint as support does the driver get out of the ammo truck?confused.gif?confused.gif?

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 </td></tr><tr><td id="QUOTE">have still not found a list of ammo<span id='postcolor'>

tata:

http://www.flashpoint1985.com/cgi-bin....t=16179

The driver of a support truck gets out cause he gets out...

You could try to lock the vehicle. Anyway it doesnt matter. Set the support waypoint straight at it. It will be moving when it´s called.

You could also count the ammo by script and have the tank automatically rearmed when it´s ammo runs out. This could be combined with a complete stop ( disable AI "Move") of the tank concerned, but I think this goes to far.

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  

×