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?
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#8
RE: Addpropforce to player?

(04-13-2015, 01:31 PM)FlawlessHappiness Wrote: 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);
}

oh.. thanks didn't know it xD stupid me Tongue i tohught the first timer didn't worked well. but yeah, i hope the update doesn't break my game, like a month ago..

Huh?! it still give me the same message... my script :

void Explosion(string &in asEntity)
{
StartPlayerLookAt("Water", 5, 10, "");
SetEntityActive("Monster", true);
SetEntityActive("Lamp", true);
SetPlayerMoveSpeedMul(0.01);
SetPlayerRunSpeedMul(0.01);
SetMessage("Messages", "Hint2", 1);
StartPlayerLookAt("Monster", 5, 10, "");
SetPlayerJumpDisabled(true);
AddTimer("", 1.5,"BOOM");
}

void BOOM(string &in asTimer)
{
AddTimer("", 6,"kaboom");
}

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

It must be good?!
I installed the game update in Games> Amnesia the dark descent.
yes i don;'t have a "redist" folder..
and i have a 1.3 update Folder inside so that' means i have the update, but it keep saying
No matchign signatures to blabla ( CONST BOOL ) instead of (true)...
(This post was last modified: 04-13-2015, 01:51 PM by Amnesiaplayer.)
04-13-2015, 01:35 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 Amnesiaplayer - 04-13-2015, 01:35 PM



Users browsing this thread: 1 Guest(s)