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
Can't make a door unlock
jmayo Offline
Junior Member

Posts: 16
Threads: 6
Joined: Sep 2011
Reputation: 0
#1
Can't make a door unlock

I have added something to my map, but when I use the key, it just can't unlock here is the script:

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "doorkey", "startingDoor", "UsedKeyOnDoor", true);
}

void MyFunc(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("Starting_Door", false, true);
        PlaySoundAtEntity("", "unlock_door", "startingDoor", 0, false);
        RemoveItem("doorkey");
}


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

}
04-03-2013, 02:24 PM
Find


Messages In This Thread
Can't make a door unlock - by jmayo - 04-03-2013, 02:24 PM
RE: Can't make a door unlock - by Tiger - 04-03-2013, 02:44 PM
RE: Can't make a door unlock - by Tiger - 04-03-2013, 04:09 PM



Users browsing this thread: 1 Guest(s)