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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Addpropforce to player?
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#2
RE: Addpropforce to player?

If you're gonna push the player, there's a seperate function to use instead.

void AddPlayerBodyForce(float afX, float afY, float afZ, bool abUseLocalCoords);

Pushes the player into a certain direction. Note that you need values above ~2000 to see any effects.

afX - amount along the X-axis
afY - amount along the Y-axis
afZ - amount along the Z-axis
abUseLocalCoords - If true, axes are based on where the player is facing, not the world.

Derp.
04-12-2015, 07:02 PM
Find


Messages In This Thread
Addpropforce to player? - by Amnesiaplayer - 04-12-2015, 06:57 PM
RE: Addpropforce to player? - by Neelke - 04-12-2015, 07:02 PM
RE: Addpropforce to player? - by Amnesiaplayer - 04-12-2015, 07:04 PM
RE: Addpropforce to player? - by Neelke - 04-12-2015, 07:41 PM
RE: Addpropforce to player? - by Amnesiaplayer - 04-13-2015, 01:19 PM
RE: Addpropforce to player? - by Amnesiaplayer - 04-13-2015, 01:35 PM



Users browsing this thread: 1 Guest(s)