"First person shooter camera control source code", by edzup
|
This code allows the user to run/walk/fly, jump, and look around. The variable player gravity can also be used for fall damage, each cycle the player isnt touching anything it is deducted the gravity# value.
To do fall damage check PlayerGravity to see if its gone below the safe limits and if so when the player hits something damage them accordingly.
*** The only requirement I ask is if you use this code can you put my name in the credits, Thank you *** |
| Code | | |