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
If has item func
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#1
If has item func

Hello I have a problem trying to load a map after the player have picked up its lantern and interacts with a door. so it looks something like this
Spoiler below!


void OnStart()
{
SetEntityPlayerInteractCallback("CastleGate", "StartMap", false);
}

void StartMap(string& asMapName, string& asStartPos)
{
if (HasItem("Lantern.ent") == true)
{
ChangeMap("01CastleBasement.map", "PlayerStartArea_1", "", "");
}
else
{
SetMessage("Messages", "FindItems", 4.0f);
}
}

Been awhile since I made this so might be way off, please help Smile


(This post was last modified: 05-06-2012, 02:46 AM by Rownbear.)
05-06-2012, 01:28 AM
Find


Messages In This Thread
If has item func - by Rownbear - 05-06-2012, 01:28 AM
RE: If has item func - by Your Computer - 05-06-2012, 02:22 AM
RE: If has item func - by Rownbear - 05-06-2012, 02:29 AM
RE: If has item func - by Your Computer - 05-06-2012, 02:35 AM
RE: If has item func - by Rownbear - 05-06-2012, 02:38 AM



Users browsing this thread: 1 Guest(s)