OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: _hammy_ on 06 Apr 2003, 00:50:54

Title: ending a mission through a script (not a trigger)
Post 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)
Title: Re:ending a mission through a script (not a trigger)
Post by: dmakatra on 06 Apr 2003, 14:00:13
forceend or sumthin. Check the online command reference.
Title: Re:ending a mission through a script (not a trigger)
Post by: _hammy_ on 06 Apr 2003, 20:50:47
k, ill try that. :)
Title: Re:ending a mission through a script (not a trigger)
Post by: _hammy_ on 06 Apr 2003, 23:47:33
nope, it doesn't work.... :(

ill try to figure something out....

thanks for the help. :)
Title: Re:ending a mission through a script (not a trigger)
Post by: Sui on 07 Apr 2003, 02:40:09
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:
Anyway, I do this all the time, and provided you take those two things into account it works like a charm :)
Title: Re:ending a mission through a script (not a trigger)
Post by: _hammy_ on 07 Apr 2003, 03:19:34
thanks