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
Script Help Help with a locked doors!
Viuffuz Offline
Junior Member

Posts: 13
Threads: 4
Joined: Jan 2012
Reputation: 0
#1
Help with a locked doors!

I have two locked doors in the same level and when I open the first door with a key, it opens the other door at the same time. Why does this happen?

Here's the script!

void OnStart ()
{
AddUseItemCallback("", "Avain", "mansion_3", "UsedKeyOnDoor", true);
AddUseItemCallback("", "pihan_avain", "mansion_11", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
RemoveItem("Avain");

SetSwingDoorLocked("mansion_11", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_11", 0, false);
RemoveItem("pihan_avain")
}
04-23-2012, 07:23 PM
Find


Messages In This Thread
Help with a locked doors! - by Viuffuz - 04-23-2012, 07:23 PM
RE: Help with a locked doors! - by Datguy5 - 04-23-2012, 07:35 PM
RE: Help with a locked doors! - by overscore - 04-23-2012, 08:02 PM
RE: Help with a locked doors! - by Cranky Old Man - 04-23-2012, 08:13 PM
RE: Help with a locked doors! - by Viuffuz - 04-23-2012, 08:15 PM
RE: Help with a locked doors! - by Datguy5 - 04-24-2012, 05:34 AM
RE: Help with a locked doors! - by Cranky Old Man - 04-24-2012, 07:15 PM
RE: Help with a locked doors! - by Datguy5 - 04-24-2012, 07:37 PM
RE: Help with a locked doors! - by Cranky Old Man - 04-24-2012, 08:22 PM
RE: Help with a locked doors! - by Stepper321 - 04-25-2012, 02:37 PM
RE: Help with a locked doors! - by SilentStriker - 04-25-2012, 02:48 PM



Users browsing this thread: 1 Guest(s)