Home   Help Search Login Register  

Author Topic: objStatus "DONE" or "NOT"  (Read 1030 times)

0 Members and 1 Guest are viewing this topic.

sgtGunneryHighway

  • Guest
objStatus "DONE" or "NOT"
« on: 15 Oct 2002, 15:23:10 »
how a trigger can check if an objective is done or not? ???

seanver

  • Guest
Re:objStatus "DONE" or "NOT"
« Reply #1 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.

sgtGunneryHighway

  • Guest
Re:objStatus "DONE" or "NOT"
« Reply #2 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?

seanver

  • Guest
Re:objStatus "DONE" or "NOT"
« Reply #3 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.

sgtGunneryHighway

  • Guest
Re:objStatus "DONE" or "NOT"
« Reply #4 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: