Expected Identifier Error - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Expected Identifier Error (/thread-15214.html) Pages:
1
2
|
RE: Expected Identifier Error - bkrstirregular - 05-02-2012 The sound does play and it's a level door RE: Expected Identifier Error - Cranky Old Man - 05-02-2012 (05-02-2012, 04:06 AM)bkrstirregular Wrote: The sound does play and it's a level doorThen you're simply using the wrong function to unlock it. Try this function instead: SetLevelDoorLocked(string& asName, bool abLocked); (Also note that level doors won't swing open.) RE: Expected Identifier Error - bkrstirregular - 05-02-2012 void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetLevelDoorLocked(string& "firstdoor1", true); PlaySoundAtEntity("", "unlock_door", "firstdoor1", 0, false); RemoveItem("key_1"); } So like this? RE: Expected Identifier Error - Cranky Old Man - 05-02-2012 (05-02-2012, 05:16 AM)bkrstirregular Wrote: void UsedKeyOnDoor(string &in asItem, string &in asEntity)I don't know that particular function, but definitely more like this: SetLevelDoorLocked("firstdoor1", false); RE: Expected Identifier Error - bkrstirregular - 05-02-2012 Omg...if you are not the most amazing person ever!! thank you so so much!! |