From: purerange86
For 07, Is there any way to find the elevation of the camera, or has anyone worked on a function to do this? Any suggestions on what techniques one might use to do this? I'm thinking maybe height of the player, but that seems to be variable based on what one is wearing.
What I really need is to do a check if the player is at SRL_angle_high or not, maybe that would be a starting point.
Thanks in advance for any help!
I used to count stable item TPA length. Actually i did it in reverse effect, i was changing the tpa lenght filter based on the angle of the camera, so it could be done in reverse. This may actually work with charachter too. Or just count pozition of certain pixel of your charachter clothers maybe a helmet on the screen. Since charachter is not stable at screen either.
For example what i was doing: i get player with rune helmet/rune pickaxe in wildy rune rocks and rune rocks. I dont know which lenghts to filter because my camera used to be at various angles i mean not elevation but rotation wise and used it to know what lenght rune rock is supposed to be like for angle 45 degrees 25-35 length then i knew anyone bigger and smaller can be filtered out. Atso i use similar tactics at dragons bots for example guam leaf and green dragonhide had very similar colors but i get camera angle and based on that filter tpa lenghts. Since if i wouldnt for example and it would be like tpa between 12 to 110 for d hide 12 is small number but if i am low angle its only 12 pixels i get but if i am high angle i get guam of 31 pixel but d hide of 80 or so so i can adjust filters by angle if i dont wana pick guam leafs. So my script used to move mouse to spot only if tpa longer than 32 at high angle and if low angle then at 12+
So to summ up TPA length may also be used to determine camera elevation.