Jump to content

Real resupply


Exocet

Recommended Posts

hello,

 

I am trying to build a mission, it will be a little momentum. For the moment I am trying to find a way to réaprovisioné base by aerial destructible convoys. Which will act on the amount of weapons issued.

 

I searched a lot but could not find a scipt or other trick

 

Do you have a solution to offer me ? :huh:

 

thank you

Link to comment
Share on other sites

The DCS warehouse system is not accessible by Lua. You can get the amount of stuff that was available at mission start from the warehouse table, but you cannot add new supplies or get the amount that are currently available (AFAIK there is no getAmmo() for airbases).

 

A possible workaround is to implement such a system entirely in Lua. Keep track of the amount of ammo that leaves an airbase and returns to it (S_EVENT_TAKEOFF, S_EVENT_LAND, getAmmo()) and despawn any client that tries to cheat by leaving with more stuff than would be available.

 

I plan to implement such a system for a mission of mine at some point in the future and have already confirmed that it is possible to do.

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...