Lua Legion • Re: Get Dusk, Night timings
Matrix Games Forums » Lua Legion
by Parel803
2w ago
Thx, appriciated. regards GJ Statistics: Posted by Parel803 — Wed May 01, 2024 4:06 pm ..read more
Visit website
Lua Legion • Re: Get Dusk, Night timings
Matrix Games Forums » Lua Legion
by Nikel
2w ago
Is this the site? https://www.calculatorsoup.com/calculat ... sunset.php Statistics: Posted by Nikel — Wed May 01, 2024 4:05 pm ..read more
Visit website
Lua Legion • Get Dusk, Night timings
Matrix Games Forums » Lua Legion
by Parel803
2w ago
Good evening, Is it possible to get the Z-time of the Dusk for a specific position. With: Code: local c = ScenEdit_GetUnit({name='Kraljevo-Lađevci AB', guid='KO61QJ-0HN39901G4NCA'})local tod = ScenEdit_GetTimeOfDay({latitude=c.latitude, longitude=c.longitude})print (tod) I got the current but can I kown the dusk, night and dawn time for a specific position, unit or on a contact in advance. Or is there a simple way? I found some internet site but hard to get past time specific dates. regards GJ Statistics: Posted by Parel803 — Wed May 01, 2024 3:58 pm ..read more
Visit website
Lua Legion • Extracting and Modifying Military Base Groups in Game via Lua Scripting
Matrix Games Forums » Lua Legion
by hanzawa1991
1M ago
I am interested in extracting the game's built-in military base groups, which are imported in some manner, into Lua script statements. This would allow me to modify details like latitude and longitude, on-site facilities, etc., so that the base groups can be redeployed elsewhere or have their runway models changed. How can I achieve this? Also, how can I find out the existing Lua code for the base groups? I'm not sure if I've explained this clearly enough. I'm guessing the code might look something like this? local redUnits = ScenEdit_GetUnits({side='Red'}) if redUnits then for _, unit in ipai ..read more
Visit website
Lua Legion • Re: Add Cargo to mission
Matrix Games Forums » Lua Legion
by gesch80550
1M ago
Thanks for that info - I have not hit that problem yet...more fun-ness to look forward to 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 Lua, could you share the code to assign Cargo to the mission? Thanks Statistics: Posted by gesch80550 — Tue Apr 09, 2024 11:43 pm ..read more
Visit website
Lua Legion • Re: Ground unit hostilities
Matrix Games Forums » Lua Legion
by andytm956
1M ago
Set up a landing zone to get the marines ashore a cargo zone. Then setup a beach head zone patrol asuw (ground). Set the beach head zone to activate once the first wave lands they will move forward to the beach head zone and engage based on the rule of engagemnt yo have assigned to the beach head zone. Look at Blue v Red Inasion taiwan, to see how i set it up there. Open with edit not play. Statistics: Posted by andytm956 — Tue Apr 09, 2024 7:24 pm ..read more
Visit website
Lua Legion • Add Cargo to mission
Matrix Games Forums » Lua Legion
by gesch80550
1M ago
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 have been trying to use addAssignedCargo on the Mission wrapper, but I get 'attempt to call a nil value (method 'addAssignedCargo')'. I have tried (ms is a mission wrapper) ms:addAssignedCargo() ms:addAssignedCargoMount() ScenEdit_AddAssignedCargo() But all of them return the same type of error ..read more
Visit website
Lua Legion • Lua for assigning A/C depending on number of detected airborne A/C
Matrix Games Forums » Lua Legion
by AdmiralSteve
1M ago
Has anyone came across a way for a side to launch A/C depending on the number of detected red side aircraft? Or can this be accomplished with missions and events? Statistics: Posted by AdmiralSteve — Sun Apr 07, 2024 2:20 pm ..read more
Visit website
Lua Legion • Re: Ground unit hostilities
Matrix Games Forums » Lua Legion
by TBLackey
1M ago
Maybe check the WRA for the weapons you are using? Specifically the Automatic Firing Range. Also, do a Manual Engage Target (Shift + F1) on the enemy and post the screenshot of the popup window. Statistics: Posted by TBLackey — Sun Apr 07, 2024 7:24 am ..read more
Visit website
Lua Legion • Re: Command Lua functions not working
Matrix Games Forums » Lua Legion
by gesch80550
1M ago
Thanks. That was it - I applied the latest version for this forum (Build 18) and it seems to be working. Statistics: Posted by gesch80550 — Sat Apr 06, 2024 12:44 am ..read more
Visit website

Follow Matrix Games Forums » Lua Legion on FeedSpot

Continue with Google
Continue with Apple
OR