OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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
-
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"
-
Thanks :)
-
That script worked fine. Unfortunately the soldier won't fire in the crouching position :'(