Jump to content

Running a lua script at the end of a mission


kontiuka
 Share

Recommended Posts

Hi.

 

Very new to lua scripting.

 

Is there a way to execute a script as soon as the user quits out of a mission? The script I've written works. I just don't know how to get it to run when the user quits.

 

I've tried the following in the trigger actions control of the mission editor ...

 

- Listen for command 51 (quit mission) and then set flag 1

- When flag 1 is true, run script

 

Didn't seem to work. Any ideas?

 

Thanks.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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