SRL Archive - OSR Help

A quick set angle question setAngle


AFools

2015-01-27 04:13:45

i have searched the forum with out much luck.

Can somebody please instruct me as to; how i can set a MID angle?

I obviously understand

setAngle(SRL_ANGLE_HIGH);
setAngle(SRL_ANGLE_LOW);

But how do i set it to "MID"?… logically setAngle(SRL_ANGLE_MID);

As the function R_FindNpc, Will sometimes perform better on a MID Angle.. when the tiles are too large.

Thanks

FullPottato

riwu

2015-01-27 04:19:45

There's no way to accurately set it to middle as it's hard to tell camera height using just color.
You could set it to highest then do keyDown(VK_DOWN) wait() keyUp(VK_DOWN)
Experiment and see how long u have to wait to get the desired height.

AFools

2015-01-27 04:33:37

Thank you; kind sir.

I spent the whole of last night coding something i think is almost ready for the public;

I found R_FindNpc would get stuck each time it level; no matter it combat or mage. I managed to rectify this but; i now need to be able differentiate between att,str,def etc. each time the character levels.

With out being a Nagg; any ideas?

Regard

Another Fullpottato

Flight

2015-01-27 09:51:26

From: riwu
There's no way to accurately set it to middle as it's hard to tell camera height using just color.
You could set it to highest then do keyDown(VK_DOWN) wait() keyUp(VK_DOWN)
Experiment and see how long u have to wait to get the desired height.


:whistling::whistling::whistling:

Anyways, if you're already using Reflection I'm sure there's some hook that returns the pitch. I haven't checked but I'd be very surprised if the Reflection include didn't have a procedure to set to the camera's pitch.

Kyle

2015-01-27 12:39:14

Actually never thought to add that function haha. Just added it to the Lape include. The function for getting the pitch is already in the pascal script version so you can just copy the one I added from Lape into your script assuming you are using Pascal Script!

Edit: I made it from 0-10 with 10 being highest and 0 being the lowest.
Reflect.compass.Makepitch (5) moves pitch to the middle.