OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Spectaculas on 03 Jun 2004, 16:27:28

Title: Back to the crouching
Post by: Spectaculas on 03 Jun 2004, 16:27:28
Finally, I know how to get soldiers crouch (eg. soldier1 playmove "crouch") But the problem is soldier1 goes up after tiny crouching session. How can I get soldier1 to stay crouched.

S**t! I don't get it! Soldiers just don't stay crouched. Could someone post ready-set script to here? And how to use it. I made script but it have no use  >:(

Btw Macguba, thanks! I learned some scripting!  ;)
Title: Re:Back to the crouching
Post by: Tomb on 03 Jun 2004, 16:59:25


...How can I get soldier1 to stay crouched...


 :) well, an ancient trick used to go like this:

remove all his handgrenades  (bob removemagazines "handGrenade", in the INIT field).
Then force him down biting dust and set his positioning to "up", like this:

INIT field spells :

this removemagazines "HandGrenade"; this setunitPos "UP"; this setBehaviour "Stealth"

 :D this used to work - its been ages since I tried it so dont kill me if some new version of OFP
has changes this... *cough*  ::) :P ;D
Title: Re:Back to the crouching
Post by: rhysduk on 03 Jun 2004, 18:32:32
Quote
so dont kill me if some new version of OFP
has changes..

Why not?  ;D

For the man to stay crouched put this in this INIT feild

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

Here (http://uk.geocities.com/rd_files/OFP/OFP.JPG) is what my result looks like ;) Sorry about lack of quality :(

Oh yeah, th eunit will stay like htis unit you tell him otherwise :)

Rhys
Title: Back to the crouching
Post by: Spectaculas on 04 Jun 2004, 17:29:22
Thanks guys  ;D! I needed this to my mission. If I get it finished, you can download it from here.