OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: El-Mariachi on 17 Sep 2002, 19:04:19

Title: Safe and standing
Post by: El-Mariachi on 17 Sep 2002, 19:04:19
This is a pretty newbieish question but here goes

I've been trying to get my bloke to stay standing using the setunitpos "up" command as well as start the game in safemode using the setbehaviour command and then change to aware when he sees an enemy. Only problem is that any person i set to stand up automatically goes into aware before he sees anyone no matter what i do. any ideas how to fix this?
Title: Re:Safe and standing
Post by: RedKnyte on 17 Sep 2002, 19:10:48
Why don't you just put the dude into "safe" and let it be.....I mean, he'll automatically take out his rifle whenever he see the enemy right? Only thing is he'll straight away prone down and shoot the enemy thats all, well you can put the setunitpos "UP" after he's seen the enemy so that he doesn't prone.........if it is that, that you wanted.
Title: Re:Safe and standing
Post by: El-Mariachi on 17 Sep 2002, 19:22:37
yeah thats how i've been forcing em to do it so far, its just an arse setting up all those triggers and conditions for each bloke, was hoping i'd missed something simple
Title: Re:Safe and standing
Post by: Tomb on 17 Sep 2002, 21:54:18
Well, ONE or two triggers could be made to work on several d00ds, m8  :o :D

Like :

"_x setbehaviour "Safe" foreach ThisList


A trigger like this would (firing right from start of miss.) set everyone within its range
in safe mode, hm?! ... And then ya could put up an ALARM trigger :

Condition = (something... try some knowsabout, or just east detected by west or alike)

On Activation = "_x setbehaviour ""AWARE""" Foreach ThisList

p'haps added  a

"_x setunitpos ""UP""" Foreach ThisList


( or name some guard groups & use those grp. names instead of the "thisList" in the foreach spells )



Title: Re:Safe and standing
Post by: LCD on 17 Sep 2002, 21:57:53
u cant use dis line
Quote
"_x setbehaviour "Safe" foreach ThisList

but u can use

"_x setbehaviour ""Safe""" foreach ThisList

 :P :P :P

:cheers:

LCD OUT
Title: Re:Safe and standing
Post by: Tomb on 17 Sep 2002, 22:02:20
 :D True that, LSD  :-* thx for pointing out my bummer there!  ;) ;D

(how could I miss that when I did it right below  ??? BAH!  ::) )



Bloody syntax crap
Title: Re:Safe and standing
Post by: LCD on 17 Sep 2002, 22:16:53
ur welcom  :P  :-*

if u r takin somthin take only LSD  ;D  ::)  :-*

LCD OUT
Title: Re:Safe and standing
Post by: Sefe on 18 Sep 2002, 09:48:33
Welcome to the forums, El-Mariachi :)
Title: Re:Safe and standing
Post by: El-Mariachi on 18 Sep 2002, 14:40:30
A pleasure to be here im sure  8) thanks for the ideas everyone