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
How to make a key open a level door?
taz251 Offline
Junior Member

Posts: 7
Threads: 3
Joined: Jul 2012
Reputation: 0
#1
How to make a key open a level door?

I have a key that unlocks a level door, but when it does the door still remains locked? Here is the script I have.

AddUseItemCallback("", "level_key", "level_dungeon_1", "OpenLevel", true);
}

void OpenLevel(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("", false, true);
PlaySoundAtEntity("", "unlock_door", "level_dungeon_1", 0, false);
RemoveItem("level_key");
}
08-04-2012, 12:59 AM
Find


Messages In This Thread
How to make a key open a level door? - by taz251 - 08-04-2012, 12:59 AM



Users browsing this thread: 1 Guest(s)