Home   Help Search Login Register  

Author Topic: Kill, and win the mission  (Read 688 times)

0 Members and 1 Guest are viewing this topic.

Knowlife

  • Guest
Kill, and win the mission
« on: 13 Mar 2003, 16:38:18 »
Hey, i'm trying to make a mission end when a officer is killed.
so i insert this in the officers init field:

if damage this = 1 : "obj_1" objStatus "DONE"

But all i get is this:
 
if damage this |#|= 1 : "obj_1" objStatus "DONE": Error Unknown operator

What is wrong? ???

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Kill, and win the mission
« Reply #1 on: 13 Mar 2003, 16:53:49 »
ok, name yer officer DaMonkey

? !(alive DaMonkey) : "obj_1" objStatus "DONE"

Knowlife

  • Guest
Re:Kill, and win the mission
« Reply #2 on: 13 Mar 2003, 17:04:58 »
he... Well, then i get this:

'|#|? !(alive officer) : "obj_1" objStatus "DONE": error Invalid number in expression

(I called him: "officer")

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Kill, and win the mission
« Reply #3 on: 13 Mar 2003, 17:39:05 »
are you using that in a trigger? if so, then take out the ? mark.

Triggers condition field already has the ? mark build-in.

so the whole thing in a trigger would go:

condition: not alive officer

on activation: "1" objstatus "done"
Not all is lost.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Kill, and win the mission
« Reply #4 on: 13 Mar 2003, 17:51:59 »
nah, itÂ's

cond: not(alive officer)

in "()"

Knowlife

  • Guest
Re:Kill, and win the mission
« Reply #5 on: 13 Mar 2003, 18:07:51 »
Ok...
I made a trigger that filled out my mission area. And put in:

cond: not(alive officer)
acti: "obj_1" objstatus "done"

And now i'm getting:

'if damage _of|#|=1 : "obj_1" objStatus "DONE": Error Unknown operator

Am I still missing something?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Kill, and win the mission
« Reply #6 on: 13 Mar 2003, 18:14:18 »
remove the init line in da officer!! :tomato:

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Kill, and win the mission
« Reply #7 on: 13 Mar 2003, 18:49:00 »
Quote
nah, itÂ's
actually both will do Armstrong
Not all is lost.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Kill, and win the mission
« Reply #8 on: 13 Mar 2003, 18:59:34 »
actually both will do Armstrong
Does it? :tomato:
sry
« Last Edit: 13 Mar 2003, 18:59:58 by The real Armstrong »

Knowlife

  • Guest
Re:Kill, and win the mission
« Reply #9 on: 13 Mar 2003, 20:04:46 »
Ok... Now I feel screwd...
I'm stil useing:

cond: not(alive officer)
acti: "obj_1" objstatus "done"

In the trigger.
And now i removed what was in the init field of the officer...  :P ;)

SÃ¥ now i'm getting no error thing!... but nothing happens when i kill the guy, the objective icon remainds the same...!

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Kill, and win the mission
« Reply #10 on: 13 Mar 2003, 20:16:37 »
Hmmm.... Strange....

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Kill, and win the mission
« Reply #11 on: 13 Mar 2003, 20:19:16 »
DOH on you ;D :tomato:.

Checked SnYpirÂ's tute. This is what you should enter;

"1" ObjStatus "DONE"

Knowlife

  • Guest
Re:Kill, and win the mission
« Reply #12 on: 13 Mar 2003, 20:22:31 »
It works!!

Thanks man! :D