Camera position
-
- Posts: 82
- Joined: Fri Apr 19, 2013 2:36 pm
Camera position
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?
Re: Camera position
If you want to aim at something or at certain coordinates, you can use the aimAt function.
To aim at npcor to point at certain coordinates
If you actually need to point at a certain angle then there is a camera class you can use. Try
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.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.
To aim at npc
Code: Select all
npc = player:findNearestNameOrId(npcNameOrId)
player:aimAt(npc)
Code: Select all
player:aimAt({X=1, Z=2, Y= 3})
Code: Select all
camera:setRotation(angle)
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)
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
-
- Posts: 82
- Joined: Fri Apr 19, 2013 2:36 pm
Re: Camera position
what about objects instead of npcs? , or would it be better just to aim at a specific coordinates..
Re: Camera position
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
Who is online
Users browsing this forum: No registered users and 0 guests