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
.Lang File Help Need help displaying door is locked on non-exit doors.
julianprokop Offline
Junior Member

Posts: 19
Threads: 7
Joined: Nov 2011
Reputation: 0
#18
RE: Need help displaying door is locked on non-exit doors.


Like this?


/////////CALLBACK
{
AddUseItemCallback("", "key_study_1", "door_locked", "UsedKeyOnDoor", true);
}

////////LOCKED DOOR MESSAGE

void door_message(string &in asEntity)
{
if(GetLocalVarInt("doorUnlocked") == 0)
{
SetMessage("Doors", "door", 3.0f);
}
}
////////USED KEY ON DOOR

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_locked", false, true);
PlaySoundAtEntity("", "unlock_door", "door_locked", 0, false);
RemoveItem("study_key_1");
AddDebugMessage("KeyOnDoor", false);
SetLocalVarInt("doorUnlocked", 1);
}
02-13-2012, 10:23 AM
Find


Messages In This Thread
RE: Need help displaying door is locked on non-exit doors. - by julianprokop - 02-13-2012, 10:23 AM



Users browsing this thread: 1 Guest(s)