OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: GeneralCoder on 11 Apr 2003, 16:11:00

Title: Is it bossible to know is unit standing or..?
Post by: GeneralCoder 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.
Title: Re:Is it bossible to know is unit standing or..?
Post by: macguba 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.
Title: Re:Is it bossible to know is unit standing or..?
Post by: GeneralCoder 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.
Title: Re:Is it bossible to know is unit standing or..?
Post by: Tomb 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  :-*



Title: Re:Is it bossible to know is unit standing or..?
Post by: GeneralCoder 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... :-\
Title: Re:Is it bossible to know is unit standing or..?
Post by: Artak on 14 Apr 2003, 07:20:41
/me 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
Title: Re:Is it bossible to know is unit standing or..?
Post by: GeneralCoder on 14 Apr 2003, 17:51:29
/me 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.  ;)