local pos_x, pos_y, pos_z = 100, 100, 100
local function keypress(key)
if(key == 274) then
pos_z = poz_z -1
elseif(key == 273) then
pos_z = pos_z +1
elseif(key == 275) then
pos_x = pos_x +1
elseif(key == 276) then
pos_x = pos_x -1
end
end
local function CamMove()
set_camera_pos (pos_x, pos_y, pos_z)
end
add_hook("key_down","FreeRoam", keypress)
add_hook("draw3D","FreeRoam", CamMove)
I think you can see what it does, well not does because it doesnt work. Halp?
Last edited by Blam; Jan 3, 2008 at 07:36 PM.