Jump to content
Sign in to follow this  
colosseum

End a mission question

Recommended Posts

Have looked high and low for the answer to this but found none...

I want to end a mission when BLUFOR comes into a certain area, but I don't like the jarring effect that the instant "End #1" trigger type will give you. My idea is to have the screen fade to black while saying "The End" or something similar, and then to have it end once the screen has faded black entirely.

How do I do this? I did the following:

1. Trigger BLUFOR present with On Act field saying:

this exec "endMission.sqs";

2. endMission.sqs file with the following:

titleText ["\n\n\n\n\nYou successfully escaped!","PLAIN",0.3]
titleCut ["","BLACK OUT",3]
3 fadeSound 0

endMission "END1"

Never seemed to work!!

Share this post


Link to post
Share on other sites

The script does not execute no matter what I try! I've placed a hint into the on act field of the trigger and it fires with no problems but the endMission.sqs script does not execute.

---------- Post added at 01:19 AM ---------- Previous post was at 01:15 AM ----------

Derp, I figured it out. It has to be executed by the player. The trigger field needs "player exec "endMission.sqs", and not "this exec...".

Answered my own question!

Edited by Colosseum

Share this post


Link to post
Share on other sites

Start the game with the parameter ""-showscripterrors" in the shortcut to see what error is happening.

EDIT : glad you sorted it, you can launch this kind of script like this : [] exec "myscript.sqs", as you don't pass any external parameter into the script.

Edited by ProfTournesol

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×