The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Knockout But Dies?
Brothersvv09 Offline
Member

Posts: 57
Threads: 29
Joined: Aug 2012
Reputation: 0
#1
Knockout But Dies?

I recently finished my Teleport script, but.. when i teleport i die? Here is my script! Is there something wrong with it?



void Knockout(string &in asEntity)
{
SetPlayerActive(false);
FadeOut(0.8f);
MovePlayerHeadPos(0.0f, -1.25f, 0.0f, 1.5f, -1.0f);
FadePlayerRollTo(3.0f, 4.5f, 5.0f);
PlaySoundAtEntity("", "player_bodyfall", "Player", 0.0f, true);
AddTimer("Teleport", 2.0f, "Lol");
AddTimer("FadeIn", 2.0f, "Lol");
}

void Lol(string &in asTimer)
{
if(asTimer == "Teleport")
{
FadePlayerRollTo(0, 4.5f, 5.0f);
MovePlayerHeadPos(0, 0, 0, 5, 0);
TeleportPlayer("TeleportHere");
}
if(asTimer == "FadeIn")
{
SetPlayerActive(true);
FadeIn(1.0f);
}
}



When I spawn i keep seeing myself falling. Thanks! (P.S. I die then)
08-07-2012, 08:34 PM
Find


Messages In This Thread
Knockout But Dies? - by Brothersvv09 - 08-07-2012, 08:34 PM
RE: Knockout But Dies? - by Adny - 08-07-2012, 08:40 PM
RE: Knockout But Dies? - by Brothersvv09 - 08-07-2012, 08:43 PM



Users browsing this thread: 1 Guest(s)