OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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.
-
"Type Bool, expected nothing"
:o
Also, how can I set it to only complete an objective as opposed to completing the mission?
-
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
-
thanks :D
-
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. ;)