Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to raise camera of the first person view?
Author Message
goodcap Offline
Member

Posts: 189
Joined: Jun 2012
Reputation: 3
Post: #1
How to raise camera of the first person view?

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?
06-08-2017 05:17 PM
Find all posts by this user Quote this message in a reply
Romulator Offline
G'day mate! :3

Posts: 3,508
Joined: Jan 2013
Reputation: 191
Post: #2
RE: How to raise camera of the first person view?

game.cfg would likely have some options there, or you could use this in your script:

PHP Code: (Select All)
MovePlayerHeadPos(float afXfloat afYfloat afZfloat afSpeedfloat afSlowDownDist); 
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.

Discord: Romulator#4942
[Image: 8f5d099c7b.png]
(This post was last modified: 06-09-2017 04:15 AM by Romulator.)
06-09-2017 04:14 AM
Find all posts by this user Quote this message in a reply
Post Reply 


[-]
Quick Reply
Message
Type your reply to this message here.

Please answer:



User(s) browsing this thread: 1 Guest(s)