Jump to content
Sign in to follow this  
Dr Oink

Adding tank ammo to the ammo truck?!

Recommended Posts

Okay; I might be really dense, but I cant get the ammotruck to accept tank ammo

(I'm building a "training day" mission for a tank crew, and the need to reload at a couple of poooints in the mission)

I tried the "this addmagazinecargo ["SHELL120",5]"

But when I drive up to the ammo truck in the mission, nothing happens (I was expecting to have the option to "reload at ammotruck")

How do I do this?!?

/Dr Oink

Share this post


Link to post
Share on other sites

You can't add the ammo of a tank to the ammo-truck.

The ammo-truck already carries those shells. As long as the ammo-cargo is not 0 the ammo-truck can reload a tank.

BUT: If the tank starts without any ammo, the option "reload @ ammo-truck" will not appear. (Maybe a bug)

So place the ammo-switch just a little right of the "zero"-value. You will now have just a few bullets for the M2 and 1 or 2 shells for the main-gun. Then it should work.

Share this post


Link to post
Share on other sites

Unlike the infantry ammo, tank ammo is not "weapon specific". There is universal "ammount of cargo". See documenation of "setAmmoCargo" function is official command reference:

vehicle setAmmoCargo ammoCargo

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.

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  

×