OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: modderman on 30 Apr 2005, 00:06:10

Title: Disable Prone
Post by: modderman on 30 Apr 2005, 00:06:10
I was wondering if someone could create a script, or figure out a way to prevent units from going prone. the "setunitpos" command dosn't seem to do it. Let me know if anyone has anyideas....
Title: Re:Disable Prone
Post by: Pilot on 30 Apr 2005, 00:15:42
I have never had problems with this:
this setunitpos "UP"

Put the above line in the unit's init field.

-Student Pilot
Title: Re:Disable Prone
Post by: Morglor9 on 30 Apr 2005, 05:43:53
do u want this on AI or player?
Title: Re:Disable Prone
Post by: DBR_ONIX on 30 Apr 2005, 11:36:00
For AI, just setunitpos
For player.. Well, the Civil War mod stoped you, but replacing the ANIM.pbo
But not exactly easy, and nothing to stop the player deleteing that file and going prone
Hm, why'r you trying to stop the player going prone? Might be other way around it
- Ben
Title: Re:Disable Prone
Post by: RujiK on 30 Apr 2005, 17:28:58
Disabling prone is a big fat hairy hassle if you are trying to do it for the player. The only way I could think of would to be create a controlable dummy camera and check if at any time its speed is going down, if so you can assume the player has just pushed his prone button, howeve obviously this is a VERY buggy script and can be screwed up all to easily.