Home   Help Search Login Register  

Author Topic: How To Set A Unit To Crouch Or Go Prone In The Editor?  (Read 689 times)

0 Members and 2 Guests are viewing this topic.

Alex

  • Guest
Hi All,
        How Do You Make A Unit Be Prone Or Crouched Via The Editor?
Thanks
Alex

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #1 on: 30 Jan 2004, 21:58:55 »
crouch is a bit of a problem, but to set a guy prone use this in his init field:

this setunitpos "down"

to only stand up:

this setunitpos "up"

and to react as he wish(prone when under fire):

this setunitpos "auto"

:beat: *Gets Shot* :beat:

Alex

  • Guest
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #2 on: 30 Jan 2004, 22:03:05 »
Thanks But You Don't Know How To Get Him To Crouch

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #3 on: 30 Jan 2004, 23:03:32 »
Use a playmove animation to make him crouch.    Don't put the command in his init field though, they tend not to work there.
Plenty of reviewed ArmA missions for you to play

Unnamed

  • Guest
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #4 on: 30 Jan 2004, 23:23:01 »
You cant make him crouch using just the editor on its own.

You could put this in a trigger:

Code: [Select]
Soldier1 switchmove "Crouch"
But this only fires every 0.5 seconds, which is not enough as he just bobs up and down.

You can do it via the editor, but you will need an addon.

Or you will have to do it via an external looping script, there are plenty of examples here.


Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #5 on: 31 Jan 2004, 02:29:15 »
You cant make him crouch using just the editor on its own.
Why  ???

I've dunnit several times...

unit setBehaviour "Combat"; unit setUnitPos "UP"; unit switchMove "crouch"

I got that working, but if the AI is behind an (over-shootable) obstacle it might get back up when firing at NME...


As usual, no guarantees on syntaxes  :P
« Last Edit: 31 Jan 2004, 02:29:40 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Unnamed

  • Guest
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #6 on: 31 Jan 2004, 08:10:09 »
It does work to a certain degree, but it wont make him stay crouched. Which is what I assumed Alex was after?

Even without any obstacles in front of him, he will stand up. But its the best non-looping method I've seen yet.


Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #7 on: 31 Jan 2004, 21:33:35 »
It does work to a certain degree, but it wont make him stay crouched.
That's odd since once testing this method the AI stayed crouched all the way trough a fight (well they died before the end but anyhoo), only a machinegunner stood up once he spotted the nme...

Well, maybe it was just a on time delight since I haven't been using that for a while...  :-\
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Alex

  • Guest
Re:How To Set A Unit To Crouch Or Go Prone In The Editor?
« Reply #8 on: 01 Feb 2004, 09:25:22 »
It Works Absoulutely Perfectly For Me, He Stays Crouched Till He Sees The Enemy And Goes Prone And Starts Firing.