OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: redmenace on 24 Nov 2005, 00:23:22

Title: End on destroy
Post by: redmenace on 24 Nov 2005, 00:23:22
I have a mission where I want the objective to be destroying a SCUD. How do I do this? I tried making an end 1 trigger synch'ed to the 'destroy' obj of the SCUD, but it didn't work.
Title: Re:End on destroy
Post by: jBrereton on 24 Nov 2005, 00:49:34
Call the Scud "Scud1" or something (doesn't really matter)

Then, in a trigger, put the activation as (not(alive Scud1)). Scud1 is changed for whatever you want to call it, obviously.

The trigger then has a win trigger in it.
Title: Re:End on destroy
Post by: redmenace on 24 Nov 2005, 01:18:59
"Type Bool, expected nothing"

:o

Also, how can I set it to only complete an objective as opposed to completing the mission?
Title: Re:End on destroy
Post by: Pilot on 24 Nov 2005, 03:04:04
not alive Scud1 should be put in the condition field, not the On Activation field ;)

For the objective, put the following in the On Activation field:

"1" setobjstatus "DONE"

Assuming, of course, that you want to complete the first objective.

-Pilot
Title: Re:End on destroy
Post by: redmenace on 24 Nov 2005, 03:09:14
thanks :D
Title: Re:End on destroy
Post by: macguba on 25 Nov 2005, 22:48:58
Read snYpir's tutorials on "Briefing.html" and "How to use objectives and init.sqs".   Both in the Editors Depot.

While you're at it, read all the other tutes in the Getting STarted section too.    ;)