OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: modderman on 15 Apr 2005, 18:54:53

Title: Disable AI Go-Prone
Post by: modderman on 15 Apr 2005, 18:54:53
I have tried to make a unit only stand-up through the
setunitpos "up" command, but as soon as they get fired on they go prone.....
I was wondering if there was a way to limit everyone's ability to go prone so they only stand and combat crouch....
And even maybe for the player, if you can
disable user input, but only for a certain function?
Thanks....
Title: Re:Disable AI Go-Prone
Post by: bedges on 15 Apr 2005, 19:14:03
as far as i know, setunitpos "up" should be exactly what you're looking for. i could be wrong. i've just tested it for myself (ofp 1.96) and the guys all stay standing until i shoot them in the feet, at which point they can't stay up.

not much help i'm afraid...  :-\
Title: Re:Disable AI Go-Prone
Post by: 456820 on 15 Apr 2005, 19:43:15
yep that should be right but if you do it out of an init field like you want to change them back to normal you must use the ai's name in it
eg
player1 setunitpos "up"
and if you want them to be abl to go prne use
player1 setunitpos "auto"
that should work