Frictional Games Forum (read-only)

Full Version: How to raise camera of the first person view?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I want the player[first person camera] to be taller instead of having to decrease the size of all entities en static objects in a level. Is this possible?
game.cfg would likely have some options there, or you could use this in your script:

PHP Code:
MovePlayerHeadPos(float afXfloat afYfloat afZfloat afSpeedfloat afSlowDownDist); 
Code:
Changes the position of the camera on the player's body.

afX - amount along the X-axis
afY - amount along the Y-axis
afZ - amount along the Z-axis
afSpeed - speed at which the change happens
afSlowDownDist - distance at which to start slowing down (prevents the head from abruptly stopping)

Have x and z at 0.0f, have y slightly upper so that you're taller, and change the speed and slowdown distance to whatever works nicely for you.