Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Effect  (Read 1981 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 :'(