How to make an item destroy when i use it? - 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: How to make an item destroy when i use it? (/thread-6961.html) |
How to make an item destroy when i use it? - Raymond - 03-20-2011 I think i wrote the title wrong. Anyways, i wanted to know how to destroy an item when i use the first key. For example: I need to unlock a door with two keys. One key name "Example1" and the second key named "Example2". Than when i use "Example1" for the door, Example1 will be destroyed. But when i use Example2 for the door, Example2 won't be destroyed. I used a code like this: Code: RemoveItem("prisonkeylight_1"); Sorry for making you confusing but i need help. RE: How to make an item destroy when i use it? - Tanshaydar - 03-20-2011 Raymod, it's been told you. You have to start to understand the coding logic. Do you really have the intention to create a mod that you didn't even write the code for it, though, calling it yours? You have to provide more of your code, particularly, the part where the needed work done. Or... are you trying to make others to write all code for you? RE: How to make an item destroy when i use it? - Raymond - 03-20-2011 (03-20-2011, 05:46 AM)Tanshaydar Wrote: Raymod, it's been told you. You have to start to understand the coding logic. Do you really have the intention to create a mod that you didn't even write the code for it, though, calling it yours? I don't mean to tell people to write all code i just wanted to know how to solve this problem . RE: How to make an item destroy when i use it? - Tanshaydar - 03-20-2011 Provide more code, I can't understand what you did and what went wrong. RE: How to make an item destroy when i use it? - Raymond - 03-22-2011 Nevermind i fixed it. |