OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ryu on 22 Dec 2002, 15:36:30

Title: Effect
Post by: Ryu 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
Title: Re:Effect
Post by: Blanco 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"



Title: Re:Effect
Post by: Ryu on 23 Dec 2002, 07:32:01
Thanks :)
Title: Re:Effect
Post by: Ryu on 25 Dec 2002, 11:06:13
That script worked fine. Unfortunately the soldier won't fire in the crouching position :'(