AddPlayerBodyForce help fix - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: AddPlayerBodyForce help fix (/thread-12214.html) |
AddPlayerBodyForce help fix - savior10946 - 12-31-2011 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? RE: AddPlayerBodyForce help fix - flamez3 - 12-31-2011 Your pushing him down. Make it like this: AddPlayerBodyForce(-5000, 2000, 0, false); Also, this really depends on the map axis. |