OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: _hammy_ on 06 Apr 2003, 00:50:54
-
This question ahs always bothered me.... How could I end (activate end1) a mission through a script? (not using a trigger to end it)
-
forceend or sumthin. Check the online command reference.
-
k, ill try that. :)
-
nope, it doesn't work.... :(
ill try to figure something out....
thanks for the help. :)
-
The way I do it is by having a variable, then setting that variable to true to activate the trigger. eg.
Trigger
Radius: 0,0
Type: end #1
Condition: win1
Script
...blah blah blah
win1 = true
Make sure you do a couple of things:
- initialise your variable. Make sure you have win1 = false in either your init.sqs, or the init line of a unit somewhere
- Terminate any cameras you have running around. A end trigger will not activate until all existing cameras have been terminated (gee that sounds like stupid 80's movies literic ;D)
Anyway, I do this all the time, and provided you take those two things into account it works like a charm :)
-
thanks