Frictional Games Forum (read-only)

Full Version: AddPlayerBodyForce not work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
this is the script:

Code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "spinta", true, 1);
}

void spinta(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_pant.snt", "spinta", 0, false);
AddPlayerBodyForce(2.26, 2.25, 9.5, false);
}

because it does not work?
(08-10-2012, 10:39 AM)Lake Wrote: [ -> ]this is the script:

Code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "spinta", true, 1);
}

void spinta(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_pant.snt", "spinta", 0, false);
AddPlayerBodyForce(2.26f, 2.25f, 9.5f, false);
}

because it does not work?
Need to put "f"s on the numbers because they're floats, try that.
I tryed but don't work.
(08-10-2012, 12:12 PM)Lake Wrote: [ -> ]I tryed but don't work.
Maybe just increase the numbers :p I have a door explosion in one map and it knocks the player back 27000,0,0 and that's only like 5 metres
to move the player, you need at least 2000, to make a visible chance
ok problem solved Wink