Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Scripting Issue (v1.14) [Issue Clarified, No change needed]

 
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 >> Scripting Issue (v1.14) [Issue Clarified, No change needed] Page: [1]
Login
Message << Older Topic   Newer Topic >>
Scripting Issue (v1.14) [Issue Clarified, No change nee... - 2/8/2018 2:05:35 AM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
Howdy, I've found a weird behavior in assigning units to mission through scripting. The unit assigned teleports to lat 0 long 0. I've attached a scenario. The unit is assigned 30 seconds into the mission.

Attachment (1)

< Message edited by angster -- 2/8/2018 12:43:14 PM >
Post #: 1
RE: Scripting Issue (v1.14) - 2/8/2018 7:26:58 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
The issue isn't with the scripting. The planes sitting at the base don't have location setting so are ending up airborne at (0,0)

_____________________________

Michael

(in reply to angster)
Post #: 2
RE: Scripting Issue (v1.14) - 2/8/2018 8:47:35 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
The SE_AssignToMission() assumes that the mission planner is to be used; this creates flight plans and assumes plane(s) are airborne. To get around this for now, use ScenEdit_AssignUnitToMission("Gladiator #1","Test Mission", false, false).
This will tell the function not to use the mission planner; the planner will still run normally when planes are ready to launch.

< Message edited by michaelm75au -- 2/8/2018 9:06:52 AM >


_____________________________

Michael

(in reply to michaelm75au)
Post #: 3
RE: Scripting Issue (v1.14) - 2/8/2018 12:41:27 PM   
angster

 

Posts: 89
Joined: 10/12/2015
Status: offline
Thanks! It works as planned now.

(in reply to michaelm75au)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Scripting Issue (v1.14) [Issue Clarified, No change needed] 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

2.547