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:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
It's still locked, Even I used a key...[SOLVED]
waqas12346 Offline
Senior Member

Posts: 352
Threads: 38
Joined: Nov 2010
Reputation: 1
#1
Sad  It's still locked, Even I used a key...[SOLVED]

Ok, I am standing infront of the door, I have a key, I used a key now, Now I heard a Unlocked door sound, Checked my inventory and key is not there anymore because I used it, I'm about to open the door. Now I heard a Locked sound, WHY THE DOOR IS STILL LOCKED??? I even used a key on it!!! What is wrong with this script? Angry

void OnStart()
{
AddUseItemCallback("", "Fluffy_Key", "Fluffy_Door", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("Fluffy_Door", false, true);
    PlaySoundAtEntity("", "unlock_door.snt", "Fluffy_Door", 0.0f, true);
}

void OnEnter()
{
}

void OnLeave()
{
}
(This post was last modified: 08-30-2011, 05:34 AM by waqas12346.)
08-29-2011, 10:25 PM
Website Find


Messages In This Thread
It's still locked, Even I used a key...[SOLVED] - by waqas12346 - 08-29-2011, 10:25 PM



Users browsing this thread: 1 Guest(s)