Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make player teleport when touching item?
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#8
RE: How to make player teleport when touching item?

Don't have the word float in your fade functions.

Also, that's not what I meant. Here's what I meant:

void OnStart()
{
SetEntityPlayerInteractCallback("key", "Stuff", true);
}

void Stuff(string &in asEntity)
{
FadeOut(5);
AddTimer("tele", 5, "Teleport");
}

void Teleport(string &in asTimer)
{
FadeIn(5);
TeleportPlayer("PlayerStartArea_2");
}

04-08-2011, 06:29 PM
Find


Messages In This Thread
RE: How to make player teleport when touching item? - by Anxt - 04-08-2011, 06:29 PM



Users browsing this thread: 1 Guest(s)