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
Check My Key-to-Door Script. Thanks!
AggressiveGecko Offline
Junior Member

Posts: 4
Threads: 2
Joined: Oct 2011
Reputation: 0
#1
Check My Key-to-Door Script. Thanks!

Ok this is my scripting to open a specific door with a key. I have spent TOO much time trying to fix this script by watching other people and if someone could just help me out here I would be SO thankful!! BTW i'm using notepad++
////////////////////////////
// Run first time starting map
void Onstart()
{
AddUseItemCallback("", "torturechamberkey_1", "torturechamberdoor_1", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("torturechamberdoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "torturechamberdoor_1", 0, false);
RemoveItem("torturechamberkey_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
10-07-2011, 03:39 PM
Find


Messages In This Thread
Check My Key-to-Door Script. Thanks! - by AggressiveGecko - 10-07-2011, 03:39 PM



Users browsing this thread: 1 Guest(s)