The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make an item destroy when i use it?
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#1
How to make an item destroy when i use it?

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:
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.

One World To Another [DEMO] coming soon.
03-20-2011, 05:10 AM
Find


Messages In This Thread
How to make an item destroy when i use it? - by Raymond - 03-20-2011, 05:10 AM



Users browsing this thread: 4 Guest(s)