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 ScenEdit_AddUnit issue

 
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 >> Tech Support >> Lua ScenEdit_AddUnit issue Page: [1]
Login
Message << Older Topic   Newer Topic >>
Lua ScenEdit_AddUnit issue - 6/10/2017 10:04:54 PM   
Hestia


Posts: 22
Joined: 2/28/2017
Status: offline
I tried to add a downed pilot to a scenario through Lua script, but no matter what I do I end up with the downed pilot and an unknown contact "MOBILE #11" (class unknown, side unknown) on the same location as the downed pilot.
This is the action I use:
ScenEdit_AddUnit({type = 'Land', name = "Pilot #1", dbid = 2046, side = 'NATO', latitude = '22.16', longitude= '-79.70', autodetectable = 'true', holdfire = 'true', proficiency = 4})

I tried different triggers (time, random time, unit enters area...) but no luck.
What am I doing wrong?
Post #: 1
RE: Lua ScenEdit_AddUnit issue - 6/10/2017 10:09:43 PM   
CCIP-subsim


Posts: 695
Joined: 11/10/2015
Status: offline
I think Mikmyk ran into an issue like this before, so he may be able to expand - it may be a problem with the "autodetectable" part. Try and take it out (or set it 'false') and see if that fixes it. If you actually need the unit to be autodetected, then just add another line below and change it to "true" via ScenEdit_SetUnit()

(in reply to Hestia)
Post #: 2
RE: Lua ScenEdit_AddUnit issue - 6/10/2017 10:24:09 PM   
Hestia


Posts: 22
Joined: 2/28/2017
Status: offline
It worked! Thank you, CCIPsubsim, you saved my day.

(in reply to CCIP-subsim)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Lua ScenEdit_AddUnit issue 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

3.891