LUA AddShip Script

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
Phobosdeimos71
Posts: 182
Joined: Sat Nov 10, 2012 5:18 pm
Location: Canada

LUA AddShip Script

Post by Phobosdeimos71 »

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
Posts: 175
Joined: Thu Apr 27, 2017 1:04 pm

RE: LUA AddShip Script

Post by Dan109 »

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

http://commandlua.github.io/#ScenEdit_AddUnit
User avatar
CCIP-subsim
Posts: 467
Joined: Tue Nov 10, 2015 6:59 pm

RE: LUA AddShip Script

Post by CCIP-subsim »

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
Posts: 182
Joined: Sat Nov 10, 2012 5:18 pm
Location: Canada

RE: LUA AddShip Script

Post by Phobosdeimos71 »

Thanks guys
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: LUA AddShip Script

Post by michaelm75au »

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. [:)]
Michael
Post Reply

Return to “Command: Modern Operations series”