Home   Help Search Login Register  

Author Topic: is he lying on the ground?  (Read 2385 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
is he lying on the ground?
« on: 15 Jun 2003, 21:24:21 »
Sorry for the n00bin but I couldnt find anythin in the command reference or in the FAQ. How do you check if a unit is lying on the ground? Thx in advance.

:cheers:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:is he lying on the ground?
« Reply #1 on: 15 Jun 2003, 22:23:36 »
no way ?

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

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #2 on: 15 Jun 2003, 22:34:21 »
What? There must be... :-\

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #3 on: 15 Jun 2003, 22:44:45 »
OK, if there isnt away to check if a unit is lying on the ground then is there a way to do an animation exactly after the first one is done. I have this script where u are doin the "medic-patch-up-animation". Now, if the unit is lying down then it takes more time for him to do the animation(he have to stand up) then for a guy already standing up. If I use the same waiting time on both either the animation will not complete on the guy whos lying down or the animation will be done and the player just stands there. Is there anyway to fix this?

Ace

  • Guest
Re:is he lying on the ground?
« Reply #4 on: 15 Jun 2003, 23:02:36 »
There might bea chance u can use the animationphase command.

But I'm not sure

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #5 on: 16 Jun 2003, 12:14:25 »
I mean the switchmove/playmove animations/moves. Or will this command u are talkin bout work on switchmove/playmove too?

Ace

  • Guest
Re:is he lying on the ground?
« Reply #6 on: 16 Jun 2003, 17:42:10 »
it might.

I've only found it used on addon animations. (Like the goggles on BAS units)

but in theory.... ???

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #7 on: 16 Jun 2003, 17:57:50 »
Thx but what do animationphase do? I didnÂ't understand the explaination in the command refernce :-[.

Ace

  • Guest
Re:is he lying on the ground?
« Reply #8 on: 16 Jun 2003, 18:30:41 »
(_Man animationPhase "SitDown" >= 0.01)

I believe that means the instance he starts aniamtion

(_Man animationPhase "SitDown" >= 0.05)

I believe this means half way through aniamtion

(_Man animationPhase "SitDown" >= 1.00)

Aniamtion Complete
none of this is guaranteed mind..

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #9 on: 16 Jun 2003, 18:43:50 »
OK, IÂ'll try that.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #10 on: 16 Jun 2003, 19:37:14 »
No that didnÂ't work either :-\

Kaliyuga

  • Guest
Re:is he lying on the ground?
« Reply #11 on: 16 Jun 2003, 21:15:13 »
animation phase is more like when you have  an addon.. like say the Everon Cartel Safe we made...

for the animation on it   the door is either closed or opened so it is in either phase 0 or phase 1  so you can use something like this condition:

safe animationphase "arm" > 0.7

to detect when the door has opened

the animations your after are soldier animations and I'm pretty sure the animation phase has nothin to do with the animation files for soldier models..  it's more something that is defined in O2




Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #12 on: 16 Jun 2003, 21:34:18 »
OK, but no1 know how I can solve this?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:is he lying on the ground?
« Reply #13 on: 17 Jun 2003, 00:28:58 »
yep read da sec post again - we tried 2 do dat som times

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

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:is he lying on the ground?
« Reply #14 on: 17 Jun 2003, 01:35:25 »
Without more info I'd say you should simply make the lying guy stand up, with setUnitPos "up". That is if he is not a player. Hard to force a player.. and if this is needed when a unit is wounded so he can't stand, detect that with canStand. Buuut I'd really not get hopes up.  :-\
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:is he lying on the ground?
« Reply #15 on: 17 Jun 2003, 10:39:13 »
Shit... The unit is the player... Are there a way then to start a playmove/switchmove in the middle of it? Like u skip the part where the guy is actually standin and moves down so itÂ'll be like a long combattomedic move instead of a short one? I hope u understand what I mean here. :-\

Ace

  • Guest
Re:is he lying on the ground?
« Reply #16 on: 17 Jun 2003, 10:54:09 »
Quote
the animations your after are soldier animations and I'm pretty sure the animation phase has nothin to do with the animation files for soldier models..  it's more something that is defined in O2


Yeah thats what I thought.... Oh well, try and learn.

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:is he lying on the ground?
« Reply #17 on: 03 Oct 2003, 05:19:33 »
Hmmmmmm what about the get pitch /bank function.

Aint tried it meself, might work u never know.

If it does give me a yell cause id love to knnow too :)

Zay
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"