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
well..I'm stuck again on doors
megsb927 Offline
Junior Member

Posts: 30
Threads: 10
Joined: Feb 2013
Reputation: 0
#1
Rainbow  well..I'm stuck again on doors

Hi guys well here's the problem: You go into map3, a door in the room is locked, you leave this room to get a key, but when you come back the door is unlocked before you can use a key on it... here's the script for map3:
void OnStart()
{
AddUseItemCallback("", "Key3", "castle_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Key4", "castle_2", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_1", false, false);
PlaySoundAtEntity("", "unlock_door", "castle_1", 0, false);
RemoveItem("Key3");
SetSwingDoorLocked("castle_2", false, false);
PlaySoundAtEntity("", "unlock_door", "castle_2", 0, false);
RemoveItem("Key4");
}
void OnEnter()
{

}

void OnLeave()
{

}
04-07-2013, 05:20 AM
Find


Messages In This Thread
well..I'm stuck again on doors - by megsb927 - 04-07-2013, 05:20 AM
RE: well..I'm stuck again on doors - by megsb927 - 04-07-2013, 07:33 AM
RE: well..I'm stuck again on doors - by noovra - 04-07-2013, 08:02 AM
RE: well..I'm stuck again on doors - by megsb927 - 04-07-2013, 08:58 AM
RE: well..I'm stuck again on doors - by noovra - 04-07-2013, 09:33 AM
RE: well..I'm stuck again on doors - by noovra - 04-07-2013, 10:08 AM
RE: well..I'm stuck again on doors - by megsb927 - 04-07-2013, 01:19 PM
RE: well..I'm stuck again on doors - by colin56 - 04-17-2013, 08:34 AM



Users browsing this thread: 1 Guest(s)