Jump to content
Sign in to follow this  
pang

Setunitpos command

Recommended Posts

hi folks,

i wondered, if there was a setunitpos command for a unit to rest in knies, if he stopps.

optional, is there a switchmove command for a soldier to permantely stay in knie position?

Share this post


Link to post
Share on other sites

for 1.46, this is what i know

soldat setbehaviour "COMBAT"; soldat swtichmove "Crouch"; soldat setunitpos "UP"

this will permanetly have soldier crouching.

not sure about OFPR though...maybe just

soldat swtichmove "Crouch"

might do trick.

hope this helps.

Share this post


Link to post
Share on other sites

i tried the setunitpos "crouch" thing, but it doesnt work. think there´s no command for it.

but: the init thing with soldat setbehaviour "COMBAT"; soldat swtichmove "Crouch"; soldat setunitpos "UP" works fine.

so thanks for your help, man!

it´d be really nice if BIS would make the crouch thing available as an setunitpos command in the next patch.

Share this post


Link to post
Share on other sites

setunitpos only works with "AUTO", "DOWN", "UP"

You can use the switchmove command to let him kneel.

UnitName SwitchMove "CombattoCrouch"

Now he would move into kneeling position, but stand up

again imidiately.

To avoid this, just create a loop:

#loop

UnitName SwitchMove "CombattoCrouch"

~0.1

goto "loop"

This would let him stay in kneeling position.

If you want him to get up at a certain time, just add

something to exit this loop.

#loop

UnitName SwitchMove "CombattoCrouch"

~0.1

?endanim: goto "next"

goto "loop"

#next

....

hope this helps

~S~ CD

Share this post


Link to post
Share on other sites

If memory serves me right you can set the unit to 'up' and 'combat' to make him kneel.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname setbehaviour "combat";unitname setunitpos "up"<span id='postcolor'>

I'm unable to test this right now, so I don't know if it works.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×