OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Raven on 11 Oct 2003, 17:10:06

Title: Kneeling troops
Post by: Raven on 11 Oct 2003, 17:10:06
Hi Guys

A small problem, is there a way to get a unit to kneel down, stay in that postion and still use his weapon, everytime i try, he kneels and gets stright back up again.
Title: Re:Kneeling troops
Post by: rhysduk on 11 Oct 2003, 21:01:44
Raven,

Here is the code to make units kneel... just pop it all in teh Init feild of the uniy...

this setBehaviour "combat";this setUnitPos "up";this switchMove "combattocrouch"

I know it works.. if it doesnt let me know ;D

Rhys

Thanks to IWESSHOME for the above syntax ! Submitted to me a while back.
Title: Re:Kneeling troops
Post by: Raven on 12 Oct 2003, 10:08:20
Cheers Rhysduk, it worked a treat.

Thats why I love being part of this forum, always someone out there who knows an answer.
 ;D ;D ;D ;D