OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: sgtGunneryHighway on 15 Oct 2002, 15:23:10

Title: objStatus "DONE" or "NOT"
Post by: sgtGunneryHighway on 15 Oct 2002, 15:23:10
how a trigger can check if an objective is done or not? ???
Title: Re:objStatus "DONE" or "NOT"
Post by: seanver on 15 Oct 2002, 17:29:53
I think that there is no command to do that but don't worry. Do this. Create a file called init.sqs in your mission's folder. Now put in it objective1=false.

 Now I assume you have created a trigger or something like that where you will tell that the objective is done ("1" objstatus "DONE" for example). Now in that field add also: objective1=true.

Now, wherever you want to check that, the only thing you should know is that when the objective is completed, the variable objective1 will be true, and when it's not been completed yet, it will be false.
Title: Re:objStatus "DONE" or "NOT"
Post by: sgtGunneryHighway on 15 Oct 2002, 17:55:05
errm tnx m8 but its not what i mean
for example : obj 2 cant be completed until the obj1 get status "DONE"
it is possible to lock the objective without the  objStatus "HIDDEN" command?
Title: Re:objStatus "DONE" or "NOT"
Post by: seanver on 15 Oct 2002, 17:58:03
Then use what I said. Let's say you don't want to complete the objective 2 until 1 is completed. So let's say for example that you have in the condition line of the objective 2's trigger this thing:

!(badguy alive)

Then add AND objective1

!(badguy alive) AND objective1

Now until you complete the objective 1 you won't have completed the objective 2.
Title: Re:objStatus "DONE" or "NOT"
Post by: sgtGunneryHighway on 15 Oct 2002, 18:02:26
ho ok i understand now i knew for the "0" objStatus command but not for the condition field  :D
tnx a lot m8 :cheers: