OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 17 Apr 2004, 19:08:49

Title: stupid AI keeps standing up...
Post by: CopyrightPhilly on 17 Apr 2004, 19:08:49
Yo

ok i'm using this code for the AI to make him crouched:

this switchMove "Crouch"

but guess what... HE STANDS BACK UP!!!

so if u know how to stop it then plz let me know...

cheers, philly
Title: Re:stupid AI keeps standing up...
Post by: Unnamed on 18 Apr 2004, 02:19:29
Someone suggested putting this in the Init field, it works most of the time. But there kind of fixed to the spot:

Code: [Select]
DoStop This ; This DisableAI "Move"; This SetBehaviour "Combat"; This SwitchMove "CombatToCrouch"; This SetUnitPos "Up"
Title: Re:stupid AI keeps standing up...
Post by: gundernak on 18 Apr 2004, 02:24:50
after using disableAI "move" you can not revert it, your unit will not move anymore...
Title: Re:stupid AI keeps standing up...
Post by: Homefry31464 on 18 Apr 2004, 04:36:11
Just place this in the units init field:

Code: [Select]
unitname setunitpos "down"
And I think it should work.. Good luck.