Frictional Games Forum (read-only)
Camera Zoom In and Out [SOLVED] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Camera Zoom In and Out [SOLVED] (/thread-8042.html)



Camera Zoom In and Out [SOLVED] - Simpanra - 05-16-2011

hi =)

quick question;

what is the function for making the camera zoom in or out (it is featured in Electric Castle though i can't find it, it is used when you can first walk towards the castle and the camera is zoomed in a lot)

Also; what are the default settings for this function?


Thank you =)

Edd,


RE: Camera Zoom In and Out [Need Help] - Khyrpa - 05-16-2011

FadePlayerFOVMulTo(float afX, float afSpeed);

Changes the field of view of the player. A shorter FOV will create a zoom effect.
less than 1 is zoom


RE: Camera Zoom In and Out [Need Help] - Simpanra - 05-16-2011

Wow! Amazingly fast reply! =D And thank you very much man! =D I owe you one ^_^

Edd,


RE: Camera Zoom In and Out [Need Help] - Roenlond - 05-16-2011

you can also use MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);

The Z coordinate will push your head forward iirc


RE: Camera Zoom In and Out [SOLVED] - Simpanra - 05-16-2011

Ah cool thanks ^_^