![]() |
Help with a level that has more then two doors. - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Help with a level that has more then two doors. (/thread-4810.html) |
Help with a level that has more then two doors. - RaZoR~HaX - 09-28-2010 I was wondering if someone could help me code the doors to my level. I can get one door in with void UseKey but when i try to add another door code it doesnt work, could someone help or explain this to me? RE: Help with a level that has more then two doors. - Jordo76 - 09-28-2010 Easy,Here some example code : Code: void UseKey(string &in asItem, string &in asEntity) I hope it help you ! RE: Help with a level that has more then two doors. - RaZoR~HaX - 09-30-2010 (09-28-2010, 09:46 PM)Jordo76 Wrote: Easy,Here some example code : No I do that but it still doesnt work for me, I need an already premade code on how tomake it so there can be more then one locked door on a level without another door being a level door RE: Help with a level that has more then two doors. - Jordo76 - 09-30-2010 The code i sent you work and if you want to add a door just do : Code: AddUseItemCallback("useexit", "name of the key", "name of the door", "UseKey",true); RE: Help with a level that has more then two doors. - RaZoR~HaX - 10-01-2010 (09-30-2010, 05:50 PM)Jordo76 Wrote: The code i sent you work and if you want to add a door just do : You are my hero RE: Help with a level that has more then two doors. - fantino - 10-02-2010 I have a problem with 2 locked doors. When i write this, one key open two doors. Code: void OnStart() And when i write this, the game crash. Code: void OnStart() Can you help me please ? RE: Help with a level that has more then two doors. - Jordo76 - 10-02-2010 Revised the Script : Code: void OnStart() For the 2nd script,all is wrong,you don't have to do more than one void UsedKeyOnDoor And sometimes you put an { } without void before,crashing the game... RE: Help with a level that has more then two doors. - fantino - 10-02-2010 Thank you very much! ![]() |