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 not work
The Shanus Offline
Member

Posts: 134
Threads: 15
Joined: Jun 2012
Reputation: 3
#2
RE: AddPlayerBodyForce not work

(08-10-2012, 10:39 AM)Lake Wrote: this is the script:

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.

[Image: theshanusyoutube.jpg]
08-10-2012, 11:42 AM
Find


Messages In This Thread
AddPlayerBodyForce not work - by Lake - 08-10-2012, 10:39 AM
RE: AddPlayerBodyForce not work - by The Shanus - 08-10-2012, 11:42 AM
RE: AddPlayerBodyForce not work - by Lake - 08-10-2012, 12:12 PM
RE: AddPlayerBodyForce not work - by The Shanus - 08-10-2012, 12:20 PM
RE: AddPlayerBodyForce not work - by Lizard - 08-10-2012, 12:49 PM
RE: AddPlayerBodyForce not work - by Lake - 08-10-2012, 05:29 PM



Users browsing this thread: 1 Guest(s)