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
** SOLVED ** Key Doesn't Unlock Door!
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#8
RE: Key Doesn't Unlock Door!

(05-01-2013, 01:05 PM)DeAngelo Wrote: You put that in the level editor it's maison_Door but in your script it's masion_Door (the i and s are switched)

Sorry, that was my own typing mistake. It is masion_Door in both the HPS File and the Level Editor.

ONCE AGAIN, MY HPS FILE



void OnStart()
{
AddUseItemCallback("", "Key1", "masion_Door", "DoorUnlockKey", true);
}

void OnEnter()
{

}

void OnLeave()
{

}
void DoorUnlockKey(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("masion_Door", false);
PlayGuiSound("unlock.door.snt", 100);
RemoveItem("Key1");
}
(This post was last modified: 05-01-2013, 01:10 PM by FurtherGames.)
05-01-2013, 01:09 PM
Find


Messages In This Thread
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 12:49 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 12:54 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:02 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:05 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:09 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:12 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:14 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:16 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:39 PM
RE: Key Doesn't Unlock Door! - by Kullin - 05-01-2013, 01:17 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:19 PM



Users browsing this thread: 1 Guest(s)