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
Addpropforce to player?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#7
RE: Addpropforce to player?

You need to update to v1.3 to use SetPlayerFallDamageDisabled.

void BOOM(string &in asTimer)
{
AddTimer("", 6,"BOOM");
AddPlayerBodyForce(0, 0, 100000, true);
SetPlayerFallDamageDisabled(true);
}

Look at this timer.
Do you see, that you're adding another timer in it?

AddTimer("", 6,"BOOM");

You're saying, "When I call this timer, call it again in 6 seconds". And then it repeats.

"When I call this timer, call it again in 6 seconds"
"When I call this timer, call it again in 6 seconds"
"When I call this timer, call it again in 6 seconds"

And so on. All you have to do it remove the add timer.

void BOOM(string &in asTimer)
{
AddPlayerBodyForce(0, 0, 100000, true);
SetPlayerFallDamageDisabled(true);
}

Trying is the first step to success.
04-13-2015, 01:31 PM
Find


Messages In This Thread
Addpropforce to player? - by Amnesiaplayer - 04-12-2015, 06:57 PM
RE: Addpropforce to player? - by Neelke - 04-12-2015, 07:02 PM
RE: Addpropforce to player? - by Amnesiaplayer - 04-12-2015, 07:04 PM
RE: Addpropforce to player? - by Neelke - 04-12-2015, 07:41 PM
RE: Addpropforce to player? - by Amnesiaplayer - 04-13-2015, 01:19 PM
RE: Addpropforce to player? - by FlawlessHappiness - 04-13-2015, 01:31 PM
RE: Addpropforce to player? - by Amnesiaplayer - 04-13-2015, 01:35 PM



Users browsing this thread: 1 Guest(s)