OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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.
-
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.
-
::) 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 :-*
-
::) 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... :-\
-
/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
-
/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. ;)