OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Blip on 01 Aug 2004, 05:46:23

Title: Making units stay in a croutching position
Post by: Blip on 01 Aug 2004, 05:46:23
Hey all-

Alright, this should be an easy one.

How would I make an AI unit croutch and stay that way no matter what comes at them.   ???

Thanks-

Blip  ;D
Title: Re:Making units stay in a croutching position
Post by: h- on 01 Aug 2004, 07:51:53
In a script:

unitname setBehaviour "combat"
unitname setUnitPos "up"
unitname switchMove "crouch"

Not 100% sure that it will keep them crouching all the time...
If not, you may need to loop that switchMove "crouch" part...
Title: Re:Making units stay in a croutching position
Post by: Blip on 01 Aug 2004, 07:56:56
Thank You!  ;D ;D ;D

Just what I needed.

Later-

Blip