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
key not unlocking door
peepeeboynotreal Offline
Junior Member

Posts: 17
Threads: 10
Joined: Jun 2012
Reputation: 4
#1
key not unlocking door

i use the key on a level door i loose my key but it dosen't unlock
heres my script:
void OnStart()
{
AddUseItemCallback("", "hubkey1", "portal", "portalunlock", true);
}
void portalunlock(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("portal", false, true);
PlaySoundAtEntity("", "unlock_door", "portal", 0, false);
RemoveItem("hubkey1");
}

my key is called hubkey1 and my door is called portal
any ideas?
06-22-2012, 06:54 AM
Find


Messages In This Thread
key not unlocking door - by peepeeboynotreal - 06-22-2012, 06:54 AM
RE: key not unlocking door - by Mooserider - 06-22-2012, 07:46 AM
RE: key not unlocking door - by peepeeboynotreal - 06-22-2012, 11:31 AM
RE: key not unlocking door - by Traggey - 06-22-2012, 11:36 AM
RE: key not unlocking door - by Your Computer - 06-22-2012, 02:14 PM
RE: key not unlocking door - by SiderealStop - 06-22-2012, 05:01 PM
RE: key not unlocking door - by Cruzore - 06-22-2012, 05:04 PM
RE: key not unlocking door - by Mooserider - 06-23-2012, 05:56 AM



Users browsing this thread: 1 Guest(s)