For example while soldier's z value of selectionPosition "head" is something like 1.58m civilian's z value is 1.71m
If you want to attach a name tag above unit's head, it will appear much higher for civilian units.
For example while soldier's z value of selectionPosition "head" is something like 1.58m civilian's z value is 1.71m
If you want to attach a name tag above unit's head, it will appear much higher for civilian units.
spawn different units and use this script to check where the head is (point at the unit, execute):
hint str (cursorTarget selectionPosition "head");
just to mention, i notice boundingboxreal returns consistent values for both civ and soldier despite posture - would be a good reference for an indicator
Boundingbox doesnt change when crouched or prone (or is it just crouched) if I remember correctly so it is not a good reference for the tag height.
when i tested last night boundingboxreal registered the player in prone, if i recall it was the z-value in the second array, i'll check when i get a minute later tonight
ok, i see, you're right, it doesn't change for crouched. i guess thats a ticket too :D
so the civilian head height is correct, but the soldier's is oddly low - i uploaded a screen shot with height comparisons input into spheres next to the unit's head