Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

LUA AddShip Script

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> LUA AddShip Script Page: [1]
Login
Message << Older Topic   Newer Topic >>
LUA AddShip Script - 6/10/2017 7:30:26 PM   
Phobosdeimos71

 

Posts: 180
Joined: 11/10/2012
From: Canada
Status: offline
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
Post #: 1
RE: LUA AddShip Script - 6/10/2017 8:23:16 PM   
Dan109

 

Posts: 175
Joined: 4/27/2017
Status: offline
There is no SE_AddShip function, only the generic ScenEdit_AddUnit function. It can add anything.

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

(in reply to Phobosdeimos71)
Post #: 2
RE: LUA AddShip Script - 6/10/2017 8:40:37 PM   
CCIP-subsim


Posts: 695
Joined: 11/10/2015
Status: offline
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

< Message edited by CCIPsubsim -- 6/10/2017 8:41:26 PM >

(in reply to Dan109)
Post #: 3
RE: LUA AddShip Script - 6/10/2017 10:11:15 PM   
Phobosdeimos71

 

Posts: 180
Joined: 11/10/2012
From: Canada
Status: offline
Thanks guys

(in reply to CCIP-subsim)
Post #: 4
RE: LUA AddShip Script - 6/11/2017 3:40:12 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
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

(in reply to Phobosdeimos71)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> LUA AddShip Script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.563