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

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


angster -> Scripting Issue (v1.14) [Issue Clarified, No change needed] (2/8/2018 2:05:35 AM)

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.




michaelm75au -> RE: Scripting Issue (v1.14) (2/8/2018 7:26:58 AM)

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)




michaelm75au -> RE: Scripting Issue (v1.14) (2/8/2018 8:47:35 AM)

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.




angster -> RE: Scripting Issue (v1.14) (2/8/2018 12:41:27 PM)

Thanks! It works as planned now.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.140625