Frictional Games Forum (read-only)

Full Version: Camera Zoom In and Out [SOLVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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,
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
Wow! Amazingly fast reply! =D And thank you very much man! =D I owe you one ^_^

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

The Z coordinate will push your head forward iirc
Ah cool thanks ^_^