LUA AddShip Script (Full Version)

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



Message


Phobosdeimos71 -> LUA AddShip Script (6/10/2017 7:30:26 PM)

Hello,

I am doing the "Lua in Command Tutorial 1" by Tomcat56th

In the Event Editor Action I have clicked on the Lua script tab looking for the ScenEdit_AddShip Script.

It doesn't seem to be in the dropdown.

Has ScenEdit_AddShip been changed to something else?

Thanks




Dan109 -> RE: LUA AddShip Script (6/10/2017 8:23:16 PM)

There is no SE_AddShip function, only the generic ScenEdit_AddUnit function. It can add anything.

http://commandlua.github.io/#ScenEdit_AddUnit




CCIP-subsim -> RE: LUA AddShip Script (6/10/2017 8:40:37 PM)

I think that's a long-obsolete function - Tomcat's tutorials are excellent but a bit out of date.

Yes, definitely use ScenEdit_AddUnit instead now[:)]




Phobosdeimos71 -> RE: LUA AddShip Script (6/10/2017 10:11:15 PM)

Thanks guys




michaelm75au -> RE: LUA AddShip Script (6/11/2017 3:40:12 AM)

The AddShip/AddAircraft/.. were rolled up into the AddUnit() to make it simpler a long time ago.
The obsolete functions are still there in order to support older scenario that used them, but they are no longer used or supported. [:)]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.109375