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
Locked and Unlocked doors§
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
Locked and Unlocked doors§

void OnStart()
{
AddUseItemCallback("", "Old Door key", "mansion_5", "KeyOnDoor", true);
AddUseItemCallback("", "Hidden Key", "cabinet_metal_1", "KeyOnDoor", true);
}


void KeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("mansion_6", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_6", 0.0f, true);
SetSwingDoorLocked("cabinet_metal_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "cabinet_metal_1", 0.0f, true);
}

My doos wont be locked

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


Messages In This Thread
Locked and Unlocked doors§ - by jessehmusic - 12-25-2011, 08:45 PM
RE: Locked and Unlocked doors§ - by SpudroSpadre - 12-26-2011, 06:18 AM



Users browsing this thread: 2 Guest(s)