Home   Help Search Login Register  

Author Topic: intro ending when a script is done running???  (Read 928 times)

0 Members and 3 Guests are viewing this topic.

Offline ONoSixIsDown

  • Members
  • *
intro ending when a script is done running???
« 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
CRIMSON REIGN COMMING..... eventually :/

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:intro ending when a script is done running???
« Reply #1 on: 03 Dec 2005, 01:33:22 »
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.
« Last Edit: 03 Dec 2005, 01:34:44 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline ONoSixIsDown

  • Members
  • *
Re:intro ending when a script is done running???
« Reply #2 on: 03 Dec 2005, 01:36:07 »
neato, thanks mac
CRIMSON REIGN COMMING..... eventually :/