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...
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#6
RE: Level Doors Dosnt work when locked...

I think it should be like this
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);
}


(This post was last modified: 01-12-2012, 05:23 PM by Datguy5.)
01-12-2012, 05:18 PM
Find


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



Users browsing this thread: 1 Guest(s)