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
Configuration Files Help Level Doors Dosnt work when locked...
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#5
RE: Level Doors Dosnt work when locked...

PHP Code: (Select All)
void OnStart(){AddUseItemCallback("", "Cell Door Key", "Lockeddoor_2", "KeyOnDoor2", true); 

}

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

{

    
SetSwingDoorLocked("Lockeddoor_2", false, true);

    
PlaySoundAtEntity("", "unlock_door", "Lockeddoor_2", 0, false);

    
RemoveItem("Cell Door Key");

    
SetPropHealth("Lockeddoor_2", 0);

} 

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 01-12-2012, 05:17 PM by jessehmusic.)
01-12-2012, 05:16 PM
Website Find


Messages In This Thread
RE: Level Doors Dosnt work when locked... - by jessehmusic - 01-12-2012, 05:16 PM



Users browsing this thread: 1 Guest(s)