Hi All,
Trying to script a camera event when entering a trigger zone to fix the 3rd Person camera to a set position, so it moves from x,y behind player to a destination I set, and player is still controllable. I can't figure out what I'm missing? Could someone point me in the right direction
Any help appreciated
player = entity number
function lock_camera_init(e)
end
function lock_camera_main(e)
if GetPlayerInZone(e)
g_Entity[e]['plrinzone'] then
new_y = math.rad(g_Entity[e]['angley'])
pos_x = g_Entity[e]['x'] + (math.sin(new_y) * 1000)
pos_y = g_Entity[e]['y'] + 1100
pos_z = g_Entity[e]['z'] + (math.cos(new_y) * 1000)
newangx = 45
newangy = g_Entity[e]['angley']+180
newangz = 45
end
Edit: Found this
thread but unable to glean any info from it to help me!