Jump to content
Sign in to follow this  
Looner

Is there

Recommended Posts

Im making a huge map on nogova with lots of tanks and stuff like that. now what i would like to know is there an unlimited ammo script for support ammo trucks so that i dont have to put loads of those things in the map.

Share this post


Link to post
Share on other sites

So im guessing you want the trucks to be able to rearm tanks an unlimited amout of times.

this is taken from the official comref wich is great:

vehicle setAmmoCargo ammoCargo

Operand types:

   vehicle: Object

   ammoCargo: Number

Type of returned value:

   Nothing

Description:

   Set ammount or ammo resources in cargo space of repair vehicle. Ammo resource are used to resupply vehicles. Soldiers use individual magazines instead. Ammount one is full cargo.

Example:

   rearmTruckOne setAmmoCargo 0

so:

#Loop

~1

rearmTruckOne setAmmoCargo 1

goto "Loop"

or if you want them to have weapons that soldiers can take you can use something like this

#Loop

~1

clearweaponcargo rearmTruckOne

clearmagazinecargo rearmTruckOne

rearmTruckOne addmagazinecargo ["M16",20]

rearmTruckOne addmagazinecargo ["M21",20]

rearmTruckOne addmagazinecargo ["M60",20]

rearmTruckOne addmagazinecargo ["LAW",20]

rearmTruckOne addweaponcargo ["M16",5]

rearmTruckOne addweaponcargo ["M21",5]

rearmTruckOne addweaponcargo ["M60",5]

rearmTruckOne addweaponcargo ["LAW",5]

goto "Loop"

or something like that.

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  

×