Home   Help Search Login Register  

Author Topic: Unit Behaviour  (Read 585 times)

0 Members and 1 Guest are viewing this topic.

StonedSoldier

  • Guest
Unit Behaviour
« on: 14 Sep 2004, 13:41:19 »
ok, i want a trigger to fire up when a certain unit's behaviour switches to "AWARE"

ive tried

Condition: myguy behaviour "AWARE"
Activation: myguy sidechat "im in aware mode"

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Unit Behaviour
« Reply #1 on: 14 Sep 2004, 15:23:25 »
It's a good idea, before posting a question, to check the syntax of the command that's causing the problem.   This prevents embarrassment.    ::)

Remember that the Condition field of a trigger requires a boolean:   the code in the field must return either true or false.

Plenty of reviewed ArmA missions for you to play

Loup-Garou

  • Guest
Re:Unit Behaviour
« Reply #2 on: 14 Sep 2004, 19:40:52 »
Write "setBehaviour" and not "behaviour"... ;).

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit Behaviour
« Reply #3 on: 14 Sep 2004, 20:41:11 »
That would work if he wanted to setBehaviour.  

He really wants to check what the behaviour is.  

Try:

behaviour myguy == "AWARE"

This is a boolean (either true or false)

@ macguba

Having a bad day?
« Last Edit: 14 Sep 2004, 20:52:49 by THobson »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Unit Behaviour
« Reply #4 on: 14 Sep 2004, 22:32:20 »
Quote
Having a bad day?

I dunno, I think I must be.   I've been rude to practically everyone.   ;D
Plenty of reviewed ArmA missions for you to play

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit Behaviour
« Reply #5 on: 15 Sep 2004, 07:42:49 »
So I noticed.  Unusual.

Comrade Joe

  • Guest
Re:Unit Behaviour
« Reply #6 on: 15 Sep 2004, 14:55:57 »
Hey, i could use that! ;D