Frictional Games Forum (read-only)

Full Version: AddPlayerBodyForce help fix
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Your pushing him down. Make it like this:

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


Also, this really depends on the map axis.