OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bmgarcangel on 27 Mar 2003, 03:42:02

Title: how to make an objective be complete without grouping it
Post by: bmgarcangel on 27 Mar 2003, 03:42:02
ok lets say I have six soldiers and if all of them die what can I put in the activation box in the trigger menu that will make an obj be completed? ???
Title: Re:how to make an objective be complete without grouping it
Post by: asmodeus on 27 Mar 2003, 05:10:15
"1" objstatus "done" is what you would put in the on activation field of the trigger to make objective 1 check off.  (the objectives must be defined in the briefing)

The trick here is the condition field of the trigger, because that's what make the objective complete when you use the above code with it.   ;)  

So... for the condition field you would use:

not alive loon

I think...  Where loon is the name of the thing/soldier/whatever that dies.  

If that's not the correct command I know it's in the command reference and very close to that... notalive maybe?

Then, for more than 1 loon, just use:

not alive playername and not alive playername1 and ...

and keep putting and inbetween them!   ;)

Hope this helps!

Asmo

*EDIT*

or is it:  not (alive loon)    ::)  I'm not quite sure now... If you still need help past this I can look further, but just try these out and I bet it's one of em.   ;)