Search found 8 matches

by gesch80550
Thu Jun 13, 2024 1:22 am
Forum: Lua Legion
Topic: Get fuel range for a unit
Replies: 2
Views: 227

Re: Get fuel range for a unit

Thanks - I was afraid of that. I had thought about storing a table, but the scenario has a lot of aircraft...maybe I'll try storing it by dbid & loadout Id instead of aircraft and try a lookup that way.
Definitely need something..I was just testing the current logic and it is spinning up a pair of ...
by gesch80550
Wed Jun 12, 2024 1:26 am
Forum: Lua Legion
Topic: Get fuel range for a unit
Replies: 2
Views: 227

Get fuel range for a unit

I would like to setup an event on detection of a unit to send an aircraft to investigate or engage that unit, but I need to make sure that the aircraft selected has the range to reach the target...but I have not found any way to get the range (combat radius) of a unit based on its load out ...
by gesch80550
Fri May 31, 2024 1:46 am
Forum: Tech Support
Topic: ScenEdit_AddCustomLoss displayerror
Replies: 0
Views: 213

ScenEdit_AddCustomLoss displayerror

I have setup a scenario and would like to track the number of human casualties on both sides to report with the losses. When a unit is destroyed, I have a Lua event that looks up the crew for that unit and adds it to that side's losses - ScenEdit_AddCustomLoss( un.side, {{'Casualties', lost}})). The ...
by gesch80550
Tue Apr 09, 2024 11:43 pm
Forum: Lua Legion
Topic: Add Cargo to mission
Replies: 2
Views: 375

Re: Add Cargo to mission

Thanks for that info - I have not hit that problem yet...more fun-ness to look forward to :D

Did you use Lua to 'load wave 1' in your situation? That is the part I am stuck on at the moment. I built the Cargo Mission in Lua but can't assign the cargo I want it to move without an error. If you used ...
by gesch80550
Tue Apr 09, 2024 3:15 am
Forum: Lua Legion
Topic: Add Cargo to mission
Replies: 2
Views: 375

Add Cargo to mission

I am trying to script a mission to transport cargo in an amphibious assault, but I can't find a command to assign the cargo I want to move. If I assign it to move all available cargo, it seems to work but if I want to assign specific cargo, I can't seem to make that work...

Per the documentation, I ...
by gesch80550
Sat Apr 06, 2024 12:55 am
Forum: Lua Legion
Topic: Ground unit hostilities
Replies: 2
Views: 398

Ground unit hostilities

I am having trouble with an amphibious assault scenario I am building. I have almost figured out how to script the cargo missions to land the troops (they are partially working, so that is good enough for now), but I can't get the troops to fight. I have landed friendly troops near the hostile ...
by gesch80550
Sat Apr 06, 2024 12:44 am
Forum: Lua Legion
Topic: Command Lua functions not working
Replies: 2
Views: 450

Re: Command Lua functions not working

Thanks. That was it - I applied the latest version for this forum (Build 18) and it seems to be working.
by gesch80550
Thu Apr 04, 2024 11:21 am
Forum: Lua Legion
Topic: Command Lua functions not working
Replies: 2
Views: 450

Command Lua functions not working

I'm not sure where to post this, so I am hoping someone here can help out.

I have a collection of functions that I am using to build/re-build scenarios through the console. Each time, I make a change and need to re-run to recreate the scenario, I have to use the File menu to 'Create New Blank ...

Go to advanced search