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?
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#3
RE: Addpropforce to player?

(04-12-2015, 07:02 PM)Neelke Wrote: 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.

Oh, Thanks!!

I'm jumping the whole time... is there a stop Script?! xd
(This post was last modified: 04-12-2015, 07:08 PM by Amnesiaplayer.)
04-12-2015, 07:04 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)