Toribash
Original Post
camera hook
I saw some in the 3.1 thread that wondered about the camera hook API.

It can override the lookat, pos and FOV of the camera.

Currently there is a bug that prevents over riding on WASD movement.

local function camera()
        -- lookat needs to be called before pos 
        set_camera_lookat(0, 2, 1.5)
        set_camera_pos(3, 2, 1.1)
        set_fov(120)

        -- return 1 to disable the clients camera functions
        -- NOTE WASD and arrows are not possible to disable today 
        return 1
end

add_hook("camera", "fovcam", camera)
Originally Posted by FNugget View Post
I think I can make a free range camera, but I have not room for controls. I need WSAD freed up, and take Q and E too.
It should be relatively easy, but I can't really test it without a set of controls I can use.

Why not use the number pad?

789
456
123


? seems like plenty of keys to me...
"Splint Chesthair" - Is my real name.