OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BlackDeath-CFH on 29 Oct 2002, 05:32:00

Title: going prone..
Post by: BlackDeath-CFH on 29 Oct 2002, 05:32:00
ok, simple question. is there a command i can put in a ai units field or anything i can do so that he doesnt go prone every time he sees an enemy?
Title: Re:going prone..
Post by: sgt.scorpion on 29 Oct 2002, 09:13:51
in initfield type

this setbehaviour "CARELESS"

I think that should work
 SGT. Scorpion
Title: Re:going prone..
Post by: Guru on 29 Oct 2002, 10:02:44
if your using a waypoint, it will mess with the ai no matter what.  
careless will make him not react at all no matter what.
what you might do if your not or dont, use a waypoint. is give the commands manually in units init.
-
:dude setunitpos "UP";dude setcombatmode "red"
-
he should stand there and shoot, as for like a sentry.
or add a switchmove
-
:dude setunitpos "UP";dudeswitchmove "CombatToCrouch";
dude setcombatmode "red"
-
then he would crouch and fire.
there are lots of switchmoves to choose from.
all this can be added to his init. or u can use a trigger.
which you can add conditions, like the knowsabout command.
or the distance command.
you can also use doMove command manually in the
trigger/unit init. to move him to cover, a fortress or a small shad lets say.
setting him to COMBAT or STEALTH or AWARE will automatically interfere with what you want. he will runaround go prone and so on.so if using a waypoint set that to none
Title: Re:going prone..
Post by: Stalker on 29 Oct 2002, 10:40:08
If you just need the unit to stand always put this in his init field: this setunitpos "UP".
This setbehaviour "careless" will make him standing with his gun on a back and don't reacting on enemies.
Title: Re:going prone..
Post by: BlackDeath-CFH on 30 Oct 2002, 05:22:38
yeah i want them to attack, just never go prone. because i put the men in the towers and whenever they see an enemy they go prone... and fall to there deaths