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
Transfering key to another map and then unlock door
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#9
RE: Transfering key to another map and then unlock door

Try this instead:
Spoiler below!

void OnStart()

{
AddUseItemCallback("", "Key_2", "level_celler_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_celler_1", false);
RemoveItem("Key_2");
}


Put that in the first map's .hps! In the second map's .hps, put this:

Spoiler below!

void OnStart()

{
AddUseItemCallback("", "Key_2", "level_celler_1", "UsedKeyOnDoor2", true);
}

void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_celler_1", false);
RemoveItem("Key_2");
}


Ba-da bing, ba-da boom.
(This post was last modified: 08-25-2011, 10:48 PM by JenniferOrange.)
08-25-2011, 10:46 PM
Find


Messages In This Thread
RE: Transfering key to another map and then unlock door - by JenniferOrange - 08-25-2011, 10:46 PM



Users browsing this thread: 1 Guest(s)