Home   Help Search Login Register  

Author Topic: crouch position  (Read 726 times)

0 Members and 1 Guest are viewing this topic.

headshot_snipe

  • Guest
crouch position
« on: 14 Feb 2003, 19:01:04 »
i know how to make a guy crouch with this command:

this setbehaviour "aware"; this playmove "combattocrouch"

but i would like to know how to make a guy stay in that position because when i try that on a guy he just does the action and just stands back up.

any ideas?  :cheers:

SFG

  • Guest
Re:crouch position
« Reply #1 on: 15 Feb 2003, 04:25:12 »
hmm try "crouch" or... switchmove.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:crouch position
« Reply #2 on: 15 Feb 2003, 15:05:15 »
INIT field of soldier goes:  this setunitpos "UP"
And then simply make a WP and slide it VERY close to him.
 :o The "On Activ." field of that WP goes like:
 
unitName switchmove "crouch"
 
And set the behaviour of the WP to "combat"

If he got any handgrenades, then his INIT field should
also contain:

this removemagazines "Handgrenade"

'coz he will stand up when throwing 'em  ::)

headshot_snipe

  • Guest
Re:crouch position
« Reply #3 on: 17 Feb 2003, 13:06:40 »
that works well, :-\ until they get into combat, somtimes they stay in the crouch position but sometimes they just stand up when there are other guys from their team that shoots. I tryed putting a trigger with the switchmove command, and i put it in repeatedly but it has no effect.

any ideas how to fix that?

thx in advance

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:crouch position
« Reply #4 on: 17 Feb 2003, 14:12:11 »
Hi headshot_snipe,

this issue has been discussed in depth and solved (but we are all still looking for further input tho :)).

Read all of the following two links

They contain important info you need about getting AI crouched and being able to fire over objects. Some objects have issues with AI being able to fire over them while (crouching)  and using them as cover. Workarounds have been found ;D


http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=5966;start=0


http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=6123


I will be upgrading my AI smartcover script further this week. Try version 1.1 tho if you like.

Zay
« Last Edit: 17 Feb 2003, 14:16:38 by Zayfod »
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"