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
RemoveItem on Custom Items?
Thiefnuker Offline
Junior Member

Posts: 44
Threads: 7
Joined: Jan 2012
Reputation: 4
#1
RemoveItem on Custom Items?

Hello Folks,

We are developing a CS atm (what else?) and added a custom item: Coins
We just took the laundanum.ent, copied it, renamed it and changed the icon and SubItemName.
In a script we had the command "GiveItemFromFile("Coin" "Coin.ent");" and it worked perfectly. It added the wanted Item to the inventory.
BUT:
We can NOT remove the item anymore. (We tried "RemoveItem("Coin");")
If this line is triggered, nothing happens (No script errors).
We also tried writing it with a GiveItem command. But instead of adding a Coin that has the SubType "Health", it adds a Coin that has the SubType "Puzzle" so its not stackable :/

How can we remove those "Health" Coins? Isn't there a possibility without creating a TC?
Ty for any help!
Greetz,
Thiefnuker
Measuring
Devin
01-10-2012, 07:02 PM
Find


Messages In This Thread
RemoveItem on Custom Items? - by Thiefnuker - 01-10-2012, 07:02 PM
RE: RemoveItem on Custom Items? - by RedMser - 03-31-2012, 01:30 PM



Users browsing this thread: 1 Guest(s)