![]() |
[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: Using a Single Crowbar on Multiple Doors - Neelke - 09-22-2014 You can try setting a string variable to what door is being used. SetLocalVarString("CurrentDoor", asEntity); CreateParticleSystemAtEntity("", "ps_hit_wood.ps", GetLocalVarString("CurrentDoor"), false); RE: Using a Single Crowbar on Multiple Doors - AGP - 09-22-2014 Where would the SetLocalVarString be placed? RE: Using a Single Crowbar on Multiple Doors - Neelke - 09-22-2014 Right when you use the crowbar on a door. There's no need to check which entity it's being used at. RE: Using a Single Crowbar on Multiple Doors - FlawlessHappiness - 09-22-2014 No, that's not gonna help, since she wants it to happen at an area, which hasn't been used before. Therefore asEntity would not be a possibility. I know my solution works. I also know why it didn't work. It shouldn't be +asParent. It should be +asChild I hadn't checked what was asParent and asChild in your script. So everything must be like this: Areas named like: "AreaEffect_AreaBreak_1" Script looking like: PHP Code: CreateParticleSystemAtEntity("", "ps_hit_wood.ps", "AreaEffect_"+asChild, false); RE: Using a Single Crowbar on Multiple Doors - AGP - 09-22-2014 That did it!! +asChild has fixed it!! XD RE: [SOLVED] Using a Single Crowbar on Multiple Doors - FlawlessHappiness - 09-22-2014 Woop! We have done it! The issue has been fixed! Wubwubwubwubwub! I hope you learned something! RE: [SOLVED] Using a Single Crowbar on Multiple Doors - AGP - 09-22-2014 A lot! Really! Thanks ever so much!! |