Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Unit Behaviour
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
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"
Logged
macguba
Former Staff
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.
Logged
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"...
.
Logged
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
»
Logged
macguba
Former Staff
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
Logged
Plenty of
reviewed ArmA missions
for you to play
THobson
OFPEC Patron
Former Staff
Re:Unit Behaviour
«
Reply #5 on:
15 Sep 2004, 07:42:49 »
So I noticed. Unusual.
Logged
Comrade Joe
Guest
Re:Unit Behaviour
«
Reply #6 on:
15 Sep 2004, 14:55:57 »
Hey, i could use that! ;D
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Unit Behaviour
Top of page