Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Setting Up Re-supply

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Setting Up Re-supply Page: [1]
Login
Message << Older Topic   Newer Topic >>
Setting Up Re-supply - 2/20/2021 12:19:59 PM   
obrien979

 

Posts: 29
Joined: 5/18/2018
Status: offline
Before I slam my head against the table anymore, I figured I would ask te professionals. I have a few Lua Scripts that I have managed to master (very few), so I decided t try and create a script that would reload an Airbase Magazines with weapons, but only the magazines were below a set value. For example, I have AH-64Es stationed at an Airbase, I have added enough AGM-114K (HELLFIRE) missiles for one reload per Helicopter. AS the mission progresses thes A/C will be firing off the missiles alot!

I was hoping to create a Lua script that looks at the current amount of said munition in the Airbase's magazines, then subtracts that from a given constant number (representing the max amount allowed to be stored), then reloads the magazines with the difference value. SO if the Magazine has 25 missiles and the max amount allowed is 50, I would want the script to only add an additional 25.

I hope that I made this as clear as I could.

V/R,



_____________________________

BOB
Post #: 1
RE: Setting Up Re-supply - 2/20/2021 12:46:34 PM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
See if this system\framework works for your needs (with adjusted times etc) before building your own, which can be done of course, but can get involved.

Demeter - Automated Logistic System
http://www.matrixgames.com/forums/fb.asp?m=4843206

(in reply to obrien979)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Setting Up Re-supply Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.984