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
[Help] Teleport player to next map OnPickup
dasde Offline
Junior Member

Posts: 30
Threads: 6
Joined: May 2011
Reputation: 0
#1
[Help] Teleport player to next map OnPickup

Hi guys

My idea is to have two potions, and if the player picks up the right one you get teleported to the next map (Room6.map).

So, I have made this script:

void Teleportpotion(string &in nextlevel_potion, string &in OnPickup)
{
   TeleportPlayer("Room6.map");
   FadeOut(0);
   FadeIn(20);
}

My potions name is "nextlevel_potion" and I have gave it a CallbackFunc in the level editor "Teleportpotion".

Now, my problem is, when I pickup the potion, nothing happens, and that's where you guys come in. I need your help with this, what did I do wrong?

Thanks
(This post was last modified: 07-08-2011, 02:00 PM by dasde.)
07-08-2011, 01:54 PM
Find


Messages In This Thread
[Help] Teleport player to next map OnPickup - by dasde - 07-08-2011, 01:54 PM



Users browsing this thread: 1 Guest(s)