Jump to content

F10 Mission Command failure upon reloading MP mission


MBot

Recommended Posts

Reloading a multiplayer mission causes F10 mission commands to no longer work.

 

function ShowA()
trigger.action.outText("A", 1)
missionCommands.removeItem({"Show A"})
missionCommands.addCommand("Show B", nil, ShowB)
end

function ShowB()
trigger.action.outText("B", 1)
missionCommands.removeItem({"Show B"})
missionCommands.addCommand("Show A", nil, ShowA)
end	

ShowA()

 

Reproduction:

-Launch attached test mission as a host. The mission includes the script above (generates F10 mission commands).

-Enter client aircraft, unpause the mission.

-Cycle through text output "A" and "B" using F10 mission commands (works as expected).

-Reload the mission using "SELECT MIS." directly from the running mission.

-Repeat from step 1: F10 mission commands are no longer working, no text is put out.

Link to comment
Share on other sites

I'll look into it. Do you know if it does the same thing with trigger based F10 commands?

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...