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
Nkmols' question
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#20
RE: Nkmols' question

I don't think you're going to have the brackets after the "else".
void UsedKeyDoor(string &in asItem, string &in asEntity)
{
    if(HasItem("key_tower_1") == true)
    {
        SetSwingDoorLocked(asEntity, false, true);
        PlayGuiSound("unlock_door.snt", -1);
        GiveSanityBoost();
        RemoveItem("key_tower_1");
        AutoSave();
        
    }
    else SetMessage("Hints", "CabinetLocked", -1);
}

Creator of The Dark Treasure.
02-27-2011, 05:15 PM
Website Find


Messages In This Thread
Nkmols' question - by nkmol - 02-21-2011, 05:23 PM
RE: Forge to look at object script - by Mofo - 02-21-2011, 07:31 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 09:22 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 09:47 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 10:48 PM
RE: Forge to look at object script - by Ongka - 02-21-2011, 11:06 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 11:17 PM
RE: Forge to look at object script - by nkmol - 02-22-2011, 03:55 PM
RE: Forge to look at object script - by nkmol - 02-22-2011, 09:27 PM
RE: Nkmols' question - by nkmol - 02-22-2011, 10:40 PM
RE: Nkmols' question - by nkmol - 02-23-2011, 04:55 PM
RE: Nkmols' question - by Tanshaydar - 02-23-2011, 07:16 PM
RE: Nkmols' question - by nkmol - 02-23-2011, 09:46 PM
RE: Nkmols' question - by nkmol - 02-24-2011, 10:46 PM
RE: Nkmols' question - by Linus Ågren - 02-24-2011, 10:48 PM
RE: Nkmols' question - by nkmol - 02-25-2011, 03:35 PM
RE: Nkmols' question - by nkmol - 02-27-2011, 04:29 PM
RE: Nkmols' question - by Linus Ågren - 02-27-2011, 05:15 PM
RE: Nkmols' question - by Pandemoneus - 02-27-2011, 05:59 PM
RE: Nkmols' question - by nkmol - 02-27-2011, 06:25 PM
RE: Nkmols' question - by nkmol - 03-02-2011, 07:13 AM
RE: Nkmols' question - by nkmol - 03-03-2011, 05:21 PM
RE: Nkmols' question - by nkmol - 03-04-2011, 02:44 PM
RE: Nkmols' question - by nkmol - 03-06-2011, 06:51 PM
RE: Nkmols' question - by nkmol - 03-08-2011, 06:25 PM



Users browsing this thread: 4 Guest(s)