Log in

View Full Version : camera rotating



zluo
04-26-2012, 07:20 AM
Ok so basically, on a rsps (again lol) i want to rotate the compass until it faces north. i can not simply click on the compass button because it doesnt work. Every so often, the map shifts so i need Simba rotate the compass in small movements until the compass faces north. ideas guys?

and also what is the commands to hold the left or right key down for a specific number of times

CAPMAT
04-26-2012, 07:31 AM
Nice question, i'm also looking for answer on this questin.

Total
04-26-2012, 07:45 AM
MakeCompass('n'); and SetAngle(SRL_ANGLE_HIGH); for north compass. KeyDown for arrows but not sure how KeyDown works though.

zluo
04-26-2012, 10:06 AM
MakeCompass('n'); and SetAngle(SRL_ANGLE_HIGH); dont seem to work, any reason why?

smurg
04-26-2012, 10:47 AM
MakeCompass('n'); and SetAngle(SRL_ANGLE_HIGH); dont seem to work, any reason why?

It's a private server. Look through the code and re-write it for that server.

Getdropped
04-26-2012, 12:37 PM
maybe make a dtm and have it check the compass location and keep the presskeydown until it can find the dtm then it lets up. This should work even on a private server. Hope it works for you ;)

Frement
04-26-2012, 12:55 PM
You can check where the red dots are and count the angle from those, then shift accordingly by simulating mouse keys. Its a private server so no need for randomizing the intervals.

zluo
04-27-2012, 09:40 AM
sorry bit of a noob but exactly HOW do we hold down the arrow key or w.e. and also what are red dots?

Abu
04-27-2012, 02:55 PM
sorry bit of a noob but exactly HOW do we hold down the arrow key or w.e. and also what are red dots?

Here you go:

http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html#keyboard-functions