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 Door and Key Issue
ThePaSch Offline
Member

Posts: 108
Threads: 11
Joined: Sep 2010
Reputation: 0
#2
RE: Locked Door and Key Issue

Yup, you missed quite a few ""s there.
void UseKey("Hotel Room Key", "Hotel Room Door"){
    // Set the entity(desk or door) to unlocked
    SetSwingDoorLocked("Hotel Room Door", false, true);

    // Remove the item used from the inventory
    RemoveItem("Hotel Room Key");
    PlaySoundAtEntity("", "unlock_door.snt", "Hotel Room Door",0.0f, true);
    AddDebugMessage("The Door has successfully opened. Congratulations!", false);
    }
12-22-2010, 04:00 AM
Find


Messages In This Thread
Locked Door and Key Issue - by Nitrowing - 12-22-2010, 12:55 AM
RE: Locked Door and Key Issue - by ThePaSch - 12-22-2010, 04:00 AM
RE: Locked Door and Key Issue - by Nitrowing - 12-22-2010, 05:51 AM



Users browsing this thread: 1 Guest(s)