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
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Knockout But Dies?

Sounds like the PlayerStartArea you're trying to teleport to isn't placed properly and it's causing the player to fall through the ground, make sure it's at ground level (i.e. if the ground's y height is 4, the area's y height should be 4, etc).

I rate it 3 memes.
08-07-2012, 08:40 PM
Find
Brothersvv09 Offline
Member

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

(08-07-2012, 08:40 PM)andyrockin123 Wrote: Sounds like the PlayerStartArea you're trying to teleport to isn't placed properly and it's causing the player to fall through the ground, make sure it's at ground level (i.e. if the ground's y height is 4, the area's y height should be 4, etc).
Thanks
(This post was last modified: 08-07-2012, 08:45 PM by Brothersvv09.)
08-07-2012, 08:43 PM
Find




Users browsing this thread: 1 Guest(s)