SetPlayerCameraLookAt after/with AttachCameraToObject
#1

I have a CCTV camera object in a corner in an interior, and have used AttachCameraToObject() to attach the camera to get the camera's point of view, but when I do, I get a face full of wall, because the camera faces north no matter what. Using SetPlayerCameraLookAt after attaching the camera does nothing. Can it, please?
Reply
#2

I think it is good to also have a function similar to SetPlayerCameraLookAt, but the camera will always look at the point no matter how the camera position changes.
Reply
#3

Instead of attaching it why don't you get the objects position and set the camera,s one to it but just X & Y alitle bit off cord
So is not inside then just use SetPlayerCameraToLookAt
Reply
#4

Because I want people to be able to look around - that's why I've used AttachCameraToObject.
Reply
#5

AttachCameraToObject has parameters, use them.
Reply
#6

Quote:
Originally Posted by _[HuN]_Epsilon_
Посмотреть сообщение
AttachCameraToObject has parameters, use them.
playerid, objectid

Reply
#7

Quote:
Originally Posted by MP2
Посмотреть сообщение
Because I want people to be able to look around - that's why I've used AttachCameraToObject.
Using keys or mouse ?
Asking becouse I have an idea.
Reply
#8

Mouse.
Reply
#9

Quote:
Originally Posted by MP2
Посмотреть сообщение
playerid, objectid
Ok.

Then rotate the object to face north, attach the camera, rotate the object back.
Any effect?
Reply
#10

No, it always faces north.

@ park4bmx and robintjeh:
DUH. I want it to face the right way as soon as they type /cctv -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)