Frictional Games Forum (read-only)

Full Version: How to make an item destroy when i use it?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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");
RemoveItem("prisonkeydark_1");
than when i use "prisonkeylight_1" to the door than the prisonkeydark_1 will be destroyed as well. How to make an item NOT destroyed at the same time?

Sorry for making you confusing but i need help.
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?
(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?

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?

I don't mean to tell people to write all code i just wanted to know how to solve this problem Sad.
Provide more code, I can't understand what you did and what went wrong.
Nevermind i fixed it.