Home   Help Search Login Register  

Author Topic: Effect  (Read 1301 times)

0 Members and 1 Guest are viewing this topic.

Ryu

  • Guest
Effect
« on: 22 Dec 2002, 15:36:30 »
I am trying to make a soldier take up a kneeling shooting position behind a sand bag.
I know there are effect commands. I want the soldiers to keep that position, not go to the prone position under fire.
Is there any way I can put it in the units init or a waypoint?

Thanks

Offline Blanco

  • Former Staff
  • ****
Re:Effect
« Reply #1 on: 23 Dec 2002, 04:35:53 »
I don't know what you mean with "effect"?

Anyway.. You want him to stay in crouch position?

unitname playmove "crouch"

But with that he won't keep that position

I put a little script in the init of that guy to let him stay in crouchpos

setcrouch = true
#loop
unitname playmove "crouch"
~0.01
?setcrouch:goto "loop"
exit

Put in the init of the unit : [this] exec "nameofscript.sqs"



« Last Edit: 23 Dec 2002, 04:37:24 by Blanco »
Search or search or search before you ask.

Ryu

  • Guest
Re:Effect
« Reply #2 on: 23 Dec 2002, 07:32:01 »
Thanks :)

Ryu

  • Guest
Re:Effect
« Reply #3 on: 25 Dec 2002, 11:06:13 »
That script worked fine. Unfortunately the soldier won't fire in the crouching position :'(