Home   Help Search Login Register  

Author Topic: Crouching...  (Read 588 times)

0 Members and 1 Guest are viewing this topic.

Captain Winters

  • Guest
Crouching...
« on: 03 Aug 2003, 04:17:59 »
Making a unit crouch is ez.

_unit = _this select 0

_unit setBehaviour "COMBAT"
_unit switchMove "CombatToCrouch"

exit

is a script i made to do that. it works but then 2 miliseconds after crouching the unit goes to laying down?
I tried this one as well...

_unit = _this select 0

_unit setBehaviour "COMBAT"
#loop
_unit switchMove "CombatToCrouch"
~10
goto "loop"

exit

it works great as well... except the unit plays through the animation every 10 seconds  :-\
how can i make the unit stay in a crouched position?

Tanks!  8)

KiwiRanger

  • Guest
Re:Crouching...
« Reply #1 on: 03 Aug 2003, 08:44:32 »
Switch to safe?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Crouching...
« Reply #2 on: 03 Aug 2003, 08:58:03 »
wasnt it somin like

_unit = _this select 0

#loop
_unit switchMove "Crouch"
~0.1
goto "loop"

if it wont work ill do som searchin nd give it 2 u (cuz i know im da only 1 who remembers how 2 use search function ::) :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline rhysduk

  • Former Staff
  • ****
Re:Crouching...
« Reply #3 on: 03 Aug 2003, 13:21:54 »
Try this piece of code - put it in the Init Field of a unit :-

this setBehaviour "combat";this setUnitPos "up";this switchMove "combattocrouch"

If that dont work then i dont know anythign that does...

Thanks to IWESSHOME for this piece of code a while back !! ;D
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)