DMAN
Posts: 98
Joined: 1/11/2019 Status: offline
|
quote:
ORIGINAL: KnightHawk75 For your monitoring a particular mount on a unit for a weapon count and wanting it to 'do something' when it hits zero.. See the embedded script in this version of your sample for ideas on how to do that. At present it just checks every 1 minute and refills it when it and stop it from firing on land...when it sees it go under 7. but you can change that easy and of course whatever it is you really want in the GoDoSomeThingWithTheResults() function. BTW on your other simple issue all I did was add munition mag to unit and some ss-n-26's to and it reloaded fine, though I see you were trying to get it do that from the dock vs. itself, wasn't clear in the first post. Hi Knighthawk, Thanks for the advice! It is working now. I followed the previous advice, ran some tests, and it does what I want it to do. I also added the submarines directly to the base so if there are no more land targets, they RTB and only deploy when new land contacts are detected within their strike range. Did you write the LUA script specifically for this? Thank-you! But I tell you what, that's WAY over my head. I'm flatout getting overlays to load! Also, if it works when the scenario is built, great; if not, then it's ok. There will be plenty of other events for the human player to concern themselves with quote:
"It's ok. I have only 14 Golf II SSBs to do :)" --- Set one up the way you want first. shift-c 13 times after that should be fine. Yes, I tried that. My efforts resulted in the clone firing it's missiles then sitting there.
|