Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Adding Helo to Ship via LUA

 
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 >> Mods and Scenarios >> Lua Legion >> Adding Helo to Ship via LUA Page: [1]
Login
Message << Older Topic   Newer Topic >>
Adding Helo to Ship via LUA - 10/25/2019 1:05:25 AM   
TheOttoman

 

Posts: 138
Joined: 12/14/2017
Status: offline
If I use the code

ScenEdit_AddUnit({type="ship", side="US Navy", name="FFG-49 Robert G. Bradley", dbid=726, lat=28.58694, lon=49.409, heading=270})

to create a unit, how would I assign a helo to it?

< Message edited by TheOttoman -- 10/25/2019 1:07:14 AM >
Post #: 1
RE: Adding Helo to Ship via LUA - 10/25/2019 7:32:37 AM   
KnightHawk75

 

Posts: 694
Joined: 11/15/2018
Status: offline
local u1;
local u2;
u1 = ScenEdit_AddUnit({type="ship", side="US Navy", name="FFG-49 Robert G. Bradley", dbid=726, lat=28.58694, lon=49.409, heading=270});
u2 = ScenEdit_AddUnit({type="aircraft", side="US Navy", name="SmallHeloThatFits", dbid=1593, lat=28.58694, lon=49.409, heading=270,altitude=1000,loadoutid=15083});
--Put unit2 into unit1
ScenEdit_HostUnitToParent({HostedUnitNameOrID= tostring(u2.guid), SelectedHostNameOrID= tostring(u1.guid)});



< Message edited by KnightHawk75 -- 10/25/2019 7:34:59 AM >

(in reply to TheOttoman)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Adding Helo to Ship via LUA 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

0.117