OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BHD Mod on 08 Apr 2003, 04:58:45
-
I read snyper's tute on intro to camera scripting and i don't get how to make an outro. How do you make it so that Outro-Win is activated by a trigger that makes end#1? Please help me. All answers are apreciated!
-
Hum... I'm not sure, but i think that it's very easy:
When the last objective of the player has been achieved a trigger Type end#1 or end#2 or end#3 ... is activated, executing the following code at the Activ field: ForceEnd (check syntax, first).
Then debriefing appears. And as the player leaves debriefing, the Outro*Win* (if there is one) is played.
Yet if the trigger type is "Loose", Outro-Loose is played instead.
Don't forget "ForceEnd" to complete the mission!
-
Actually, you don't need forceend.
If the mission is ended by a trigger end#1, end#2 etc, then the win outro is played automatically after the debriefing.
If the mission is ended by a trigger type loose, then the loose outro is played automatically.
That's it. Use the drop down menu on the right of the editor screen to select "Outro" (rather than mission), place you units and your camera triggers/scripts, and away you go.
-
oh thanks! I thought that you had to type something in the init field to make outro win play out.
-
Now i am the one who has the doubt!!! We don't need to use "forceend"? ??? I have tried the #end# type trigger yet the mission still runs...! In fact, #end~ was recognized but i had to "ForceEnd" so that debriefing could be shown to me... Is it a problem of OFPv1.00? Don't i realy need forceend?