OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ONoSixIsDown on 03 Dec 2005, 01:16:34
-
hi guys, my problem is that my mission intro is basically a cutscene done with a script. i want the intro to end at the end of the cut scene. I did find this question answered in the FAQ but it still wont end. how can i say, have a variable start off as false at the start of the intro and turn true at the end of the cutscene script, and then have a trigger with the type "end1" go off when the variable is true?
i know it sounds like i just answered my own question but, i cant seem to get it to work. my main concern is setting the variable as false in the beggining of the script, then setting it as true at the end.
how does the text go?
thanks for the help
-
Trigger:
Type: end#1
Condition: endIntro
In the camera script:
endIntro=true
If you want, you could write
endIntro=false
in your init.sqs but in this case its not essential. The trigger will fire only when the variable goes true: in this case it doesn't matter whether the variable is false or undefined before that.
If you've tried it, and it doesn't work, check that you haven't made a stupid typographical error.
-
neato, thanks mac