Teleport or spawn? (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


djoos5 -> Teleport or spawn? (7/20/2020 2:04:52 AM)

It has been a while since I did any scenario building and I am sure that these questions have been asked before, so forgive me if I ask again...

Is the Teleport action still the only way to simulate the 'spawning' of a unit (ie a marine platoon from a helicopter), or is there some new LUA code that allows me to spawn a unit by type and side?

Is there now LUA code that will change the side of a facility or unit to simulate its capture? Or do I need to still use the teleport action to port out the original and port in the same type unit assigned to the 'capturing' side?

Thanks in advance for the help?




KnightHawk75 -> RE: Teleport or spawn? (7/20/2020 3:33:58 AM)

Yes there are LUA functions to spawn a unit of a given type on a given side (and have been for awhile now, ScenEdit_AddUnit).
Yes there are LUA functions to change the side of a facility or unit to simulate it's capture (ScenEdit_SetUnitSide).
ref: http://commandlua.github.io/index.html

If you run into trouble or need help with something specific post in the lua legion sub forum.







djoos5 -> RE: Teleport or spawn? (7/20/2020 5:13:44 PM)

Thank you very much!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.40625