Hey, Everyone! My question is how can I record the camera's position?
Why doesn't it work?
[b]function[/b] trace(player)
[b]local [/b]x, y, z = getCameraMatrix(player)
[b]outputChatBox[/b]("x: "..tostring(x).."; y: "..tostring(y).."; z: "..tostring(z), player)
[b]end[/b]
-----
[b]addCommandHandler[/b]("t", trace)
It always prints:
I don't understand why x is false, y and z are undefined. Please, help!