![]() |
[SCRIPT] [SOLVED] Using a Single Crowbar on Multiple 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] [SOLVED] Using a Single Crowbar on Multiple Doors (/thread-26253.html) |
RE: [SOLVED] Using a Single Crowbar on Multiple Doors - Mudbill - 09-22-2014 Okay we need to do something more clever then. Oh, and one more thing: If you're using a lot of things with for-loops, it might be better to simply use the same one, by doing so: PHP Code: for(int i = 1; i <= 4; i++) { RE: [SOLVED] Using a Single Crowbar on Multiple Doors - FlawlessHappiness - 09-22-2014 Do you have to use the brackets, when doing so? I believe it's just setting the variable i to 1;4 and as long as you keep it in the same brackets wouldn't it work just by putting +i in both functions? (09-22-2014, 09:44 AM)AGP Wrote: It's now gone back to skipping the particle effects. :/ Did you remember to rename the areas correctly? What are the names of the areas? RE: [SOLVED] Using a Single Crowbar on Multiple Doors - Mudbill - 09-22-2014 Well, the for-loop block finishes before repeating, so i will still be the same value on both entries until they're done and it repeats, at which point i has increased and it occurs again. RE: [SOLVED] Using a Single Crowbar on Multiple Doors - AGP - 09-22-2014 (09-22-2014, 09:44 AM)Mudbill Wrote: Okay we need to do something more clever then. For some reason, changing that made the crowbar not work at all. :/ EDIT: I need to learn to read first.... This is henceforth going to be known as the night of the facepalms! Just needed to change Crowbar_1 to crowbar. *facepalm* RE: [SOLVED] Using a Single Crowbar on Multiple Doors - FlawlessHappiness - 09-22-2014 Please answer this ![]() (09-22-2014, 09:46 AM)FlawlessHappiness Wrote: Did you remember to rename the areas correctly? RE: [SOLVED] Using a Single Crowbar on Multiple Doors - AGP - 09-22-2014 The areas are AreaBreak_1 (and then so on till 4) and AreaEffect_1 (up until 4). They were all duplicated from their originals, so they match the firsts. RE: [SOLVED] Using a Single Crowbar on Multiple Doors - FlawlessHappiness - 09-22-2014 Ok, so this is why the effects won't spawn: (09-22-2014, 09:39 AM)FlawlessHappiness Wrote: Since you're having the two things in the collide callback, why not have them call at You forgot to rename the areas to the right thing. If the Joint collides with areabreak, then the effect areas should be "AreaEffect_AreaBreak_1", and "AreaEffect_AreaBreak_2", and so on... RE: [SOLVED] Using a Single Crowbar on Multiple Doors - AGP - 09-22-2014 (09-22-2014, 09:57 AM)FlawlessHappiness Wrote: Ok, so this is why the effects won't spawn: Oh! Okay! I get what you mean now! I'll have to test it out in the morning as it's getting pretty late over here. RE: [SOLVED] Using a Single Crowbar on Multiple Doors - FlawlessHappiness - 09-22-2014 I hope it works out for you ^_^ Remeber that it's only because we are using +asParent here, that you can name the selected area "AreaEffect_AreaBreak_1" ![]() RE: Using a Single Crowbar on Multiple Doors - AGP - 09-22-2014 I tried it and still the same problem. But when I switched it back to using +i, it works! Aside from all the doors playing the effect at the same time. If a solution cannot be found for this, I may leave it with the doors setting off the effects at the same time. Since the doors that require the crowbar aren't anywhere near each other, it shouldn't hinder things too badly. |