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?
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#7
RE: How to make player teleport when touching item?

(04-08-2011, 06:15 PM)Anxt Wrote: Use a timer instead of directly teleporting the player. When the player picks up the lantern, use the FadeOut function and set the timer to the same time as the fadeout. Then, have the timer call a function that teleports the player and fades back in.

Its not working...

void Stuff(string &in asEntity)
{
TeleportPlayer("PlayerStartArea_2");
FadeIn(float 5.0f);
FadeOut(float 5.0f);
}

Complains many errors...

“Life is a game, play it”
04-08-2011, 06:24 PM
Find


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



Users browsing this thread: 1 Guest(s)