Camera position

Talk about anything in Runes of Magic. This does not need to pertain to botting.
Post Reply
Message
Author
Braziliano
Posts: 82
Joined: Fri Apr 19, 2013 2:36 pm

Camera position

#1 Post by Braziliano » Fri Feb 06, 2015 11:41 am

hello , is there A way to pre-set my camera view point .. when im focused on a target/npc whatever .. is it possible to force your screen to look at a certain angle?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Camera position

#2 Post by rock5 » Fri Feb 06, 2015 10:22 pm

If you want to aim at something or at certain coordinates, you can use the aimAt function.
To aim at npc

Code: Select all

npc = player:findNearestNameOrId(npcNameOrId)
player:aimAt(npc)
or to point at certain coordinates

Code: Select all

player:aimAt({X=1, Z=2, Y= 3})
If you actually need to point at a certain angle then there is a camera class you can use. Try

Code: Select all

camera:setRotation(angle)
The angle is in radians, so use -3.14 to 3.14.

To get the angle to use, point your character in the direction then use the following command with the commandline script.

Code: Select all

player:update() print(player.Direction)
or you could just use trial and error.

The camera class doesn't save it's angle so you can't get it's angle. Note: camera:setRotation doesn't allow you to set the y angle.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Braziliano
Posts: 82
Joined: Fri Apr 19, 2013 2:36 pm

Re: Camera position

#3 Post by Braziliano » Mon Feb 09, 2015 9:29 am

what about objects instead of npcs? , or would it be better just to aim at a specific coordinates..

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Camera position

#4 Post by rock5 » Mon Feb 09, 2015 11:32 am

Objects should work fine too. The aimTo function just needs a table with X, Z and Y values. So objects, players, mobs and npcs will work.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest