savior10946
Junior Member
Posts: 8
Threads: 7
Joined: Mar 2011
Reputation:
0
|
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 |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|