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
doors problem scirpts
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
doors problem scirpts

Hello i got a problem with my key and door script :S
when i have it like this it wont let door be locked
PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""Door key""mansion_1""KeyOnDoor"true); 
AddUseItemCallback("""Old Door key""mansion_5""KeyOnDoor"true); 
}


 
void KeyOnDoor(string &in asItemstring &in asEntity)
 {
     
SetSwingDoorLocked("mansion_1"falsetrue);
     
RemoveItem("Door key");
     
PlaySoundAtEntity("""unlock_door.snt""mansion_1"0.0ftrue);
     
SetSwingDoorLocked("mansion_5"falsetrue);
     
RemoveItem("Old Door key");
     
PlaySoundAtEntity("""unlock_door.snt""mansion_5"0.0ftrue);


If i take that away the doors works to be locked what should i do....

NVM fixed

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 12-25-2011, 11:12 PM by jessehmusic.)
12-25-2011, 10:25 PM
Website Find


Messages In This Thread
doors problem scirpts - by jessehmusic - 12-25-2011, 10:25 PM
RE: doors problem scirpts - by palistov - 12-26-2011, 05:25 PM



Users browsing this thread: 2 Guest(s)