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
AddPlayerBodyForce help fix
savior10946 Offline
Junior Member

Posts: 8
Threads: 7
Joined: Mar 2011
Reputation: 0
#1
AddPlayerBodyForce help fix

I want the player to be pushed back but it wont work heres the script


void OnStart()
{
AddEntityCollideCallback("Player", "Script_1", "Scary_1", true, 1);
}

void Scary_1(string &in asParent, string &in asChild, int alState)
{
AddPlayerBodyForce(0, -15000, 0, false);
}

whats wrong with it?
(This post was last modified: 12-31-2011, 04:14 AM by savior10946.)
12-31-2011, 04:14 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: AddPlayerBodyForce help fix

Your pushing him down. Make it like this:

AddPlayerBodyForce(-5000, 2000, 0, false);


Also, this really depends on the map axis.

12-31-2011, 07:18 AM
Find




Users browsing this thread: 1 Guest(s)