Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved If has item func
Author Message
Rownbear Offline
Member

Posts: 157
Joined: Apr 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)