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?
RedMser Offline
Junior Member

Posts: 40
Threads: 12
Joined: Mar 2012
Reputation: 1
#2
RE: RemoveItem on Custom Items?

(01-10-2012, 07:02 PM)Thiefnuker Wrote: 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
I tried myself, and I don't know... For me it doesn't work either. I think you can't remove stackable items. Did you try using the type "Puzzle" and then remove it. Also a problem could be not even running that script, so try adding a debug message and see if it gets displayed.
03-31-2012, 01:30 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)