Home   Help Search Login Register  

Author Topic: Is it bossible to know is unit standing or..?  (Read 625 times)

0 Members and 1 Guest are viewing this topic.

GeneralCoder

  • Guest
Is it bossible to know is unit standing or..?
« on: 11 Apr 2003, 16:11:00 »
I have searhed all the command references but all I have found is setunitpos command why there isnt getunitpos?

So do I have any change knowing is unit standing or crouhing? One way would be check units combat mode but that doesn't  mean much.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Is it bossible to know is unit standing or..?
« Reply #1 on: 12 Apr 2003, 14:12:51 »
Can you tell us a bit more about the problem?     What are the circumstances?    What are you trying to do?

If we can't answer the question we might be able to figure out a workaround.
Plenty of reviewed ArmA missions for you to play

GeneralCoder

  • Guest
Re:Is it bossible to know is unit standing or..?
« Reply #2 on: 12 Apr 2003, 16:20:43 »
Can you tell us a bit more about the problem?     What are the circumstances?    What are you trying to do?

If we can't answer the question we might be able to figure out a workaround.

Well there are many cases actualy... But right now I need to make unit play surrendering animation. And couble difrend animations if bossible.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Is it bossible to know is unit standing or..?
« Reply #3 on: 12 Apr 2003, 21:56:00 »

 ::) a blind shot here...


in scrolls :

? UnitPos Bob == "Down"


in triggers (cond. field) :

UnitPos Bob == "Down"


( ...where BOB is the unitName)  :) dunno if it works or stinks?! sorry man. try it for size  :-*




GeneralCoder

  • Guest
Re:Is it bossible to know is unit standing or..?
« Reply #4 on: 13 Apr 2003, 22:07:26 »

 ::) a blind shot here...


in scrolls :

? UnitPos Bob == "Down"


in triggers (cond. field) :

UnitPos Bob == "Down"


( ...where BOB is the unitName)  :) dunno if it works or stinks?! sorry man. try it for size  :-*





Thanks but I have tryed that allready.. It just seems that there isn't any way... :-\

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Is it bossible to know is unit standing or..?
« Reply #5 on: 14 Apr 2003, 07:20:41 »
* Artak mumble *cough

wheoowhaa what about mm.. hmm.. umm....

If you'd take the units height with

_height = getpos unit select 2

and compare it to maybe 0.3 or something..

_height < 0.3: hint "unit crouching"

I don't know from what part of the unit the pos is calculated.. maybe it's his legs or torso or head.. dunno.. but give it a go  :D
Not all is lost.

GeneralCoder

  • Guest
Re:Is it bossible to know is unit standing or..?
« Reply #6 on: 14 Apr 2003, 17:51:29 »
* Artak mumble *cough

wheoowhaa what about mm.. hmm.. umm....

If you'd take the units height with

_height = getpos unit select 2

and compare it to maybe 0.3 or something..

_height < 0.3: hint "unit crouching"

I don't know from what part of the unit the pos is calculated.. maybe it's his legs or torso or head.. dunno.. but give it a go  :D

I had that same idea actualy but it sounds so fragile. Hmm ya Theres no way it would work becose if unit goes to hill or shometing the height is too 'shometing' to detect anything...
Thanks for the though anyway.  ;)