Home   Help Search Login Register  

Author Topic: Getting unit to kneel....BUT STILL SHOOT!  (Read 1435 times)

0 Members and 1 Guest are viewing this topic.

Sgt.Zeke

  • Guest
Getting unit to kneel....BUT STILL SHOOT!
« on: 27 Sep 2003, 07:49:00 »
How do you get units to kneel in a combatative stand (where they are kneeling but still keep their rifle up and can still shoot!)?

 :-\
-Sgt.Z

Blitzer

  • Guest
Re:Getting unit to kneel....BUT STILL SHOOT!
« Reply #1 on: 27 Sep 2003, 08:10:08 »
Giday,
I'm pretty sure that if you were looking through your sight and you laid on the ground then pressed your Pg Up once(to stand up) that you would be kneeling looking through your gun.
« Last Edit: 27 Sep 2003, 08:15:05 by Warsmith »

Offline KJAM

  • Contributing Member
  • **
  • Why Me, Whats it For?
    • Nightstalker mod
Re:Getting unit to kneel....BUT STILL SHOOT!
« Reply #2 on: 27 Sep 2003, 17:05:46 »
i think he means the AI units warsmith

Sgt.Zeke

  • Guest
Re:Getting unit to kneel....BUT STILL SHOOT!
« Reply #3 on: 28 Sep 2003, 06:22:36 »
-oh ya :D

yep i'm taling about the AI ;D

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Getting unit to kneel....BUT STILL SHOOT!
« Reply #4 on: 28 Sep 2003, 10:31:27 »
From the unofficial comref:

man switchmove "CombatToCrouch"

man is the name of the unit you want to crouch. He will crouch but stand up right away. You could loop this in a script, but that wuld cause him to "flicker". ;D Never really accomplished to get a man crouched. Though, I've never had to do it. ;D

Hawkins

Unnamed

  • Guest
Re:Getting unit to kneel....BUT STILL SHOOT!
« Reply #5 on: 28 Sep 2003, 10:41:49 »
There are a three or four ways of doing it, the easiest (but not the most flexible) way I've seen was posted by SkinMez over at the Inv44 forum:

Quote
I just type this in the init field:
This DisableAI "Move"; This SetBehaviour "Combat"; This SwitchMove "CombatToCrouch"; This SetUnitPos "Up"

You should be able to place the above code in a trigger aswell.

You can force the same thing with switchmove in a loop, but as Hawkins said. It's a bit dodgy.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Getting unit to kneel....BUT STILL SHOOT!
« Reply #6 on: 28 Sep 2003, 20:50:19 »
Quote
I just type this in the init field:
This DisableAI "Move"; This SetBehaviour "Combat"; This SwitchMove "CombatToCrouch"; This SetUnitPos "Up"

I also type:

This DisableAI "Target"

In the init field. Otherwise, if you have a group of units they will run out from behind their cover to attack enemies.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:Getting unit to kneel....BUT STILL SHOOT!
« Reply #7 on: 03 Oct 2003, 04:54:22 »
Or u could try my script that was made for just this purpose ;)

http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=11904;start=%200#lastPost


Zay




« Last Edit: 03 Oct 2003, 04:58:24 by Zayfod »
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"