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 remove Item (Entity)?
ehovda321 Offline
Junior Member

Posts: 38
Threads: 22
Joined: Dec 2011
Reputation: 0
#11
RE: How to remove Item (Entity)?

(03-14-2013, 09:06 PM)Your Computer Wrote: You're supposed to provide the (internal) name of the item, not the file name, to RemoveItem. If the item was picked up from the environment, then it should be the entity name. If it was given through a script, then you were the one that gave it a name.

Also, 700+ lines of code for a merchant script? That sounds absurd.


I know right? I'm sure there is an easier way to do this... but actually I have 3000+ lines of script... hahahahaha! Wait, have you made a merchant script? If so- it would be awesome to take a look at for a future reference! :3

But, here is the tricky part - I'm using 160 different billboards to show the player the store stock OR how much they have - with that, I need to provide 160 box lights. I have to do codes like this too - hundreds of times:

if(HasItem("battery_25"))
{
if(GetGlobalVarInt("Rb") == 0)
{
RemoveItem("battery_25");
AddGlobalVarInt("Rb", 1);
}
}
(This post was last modified: 03-15-2013, 11:25 PM by ehovda321.)
03-15-2013, 11:15 PM
Find


Messages In This Thread
How to remove Item (Entity)? - by ehovda321 - 03-14-2013, 05:42 PM
RE: How to remove Item (Entity)? - by ehovda321 - 03-14-2013, 05:50 PM
RE: How to remove Item (Entity)? - by ehovda321 - 03-14-2013, 05:56 PM
RE: How to remove Item (Entity)? - by ehovda321 - 03-14-2013, 06:05 PM
RE: How to remove Item (Entity)? - by ehovda321 - 03-14-2013, 06:12 PM
RE: How to remove Item (Entity)? - by ehovda321 - 03-15-2013, 11:15 PM
RE: How to remove Item (Entity)? - by ehovda321 - 03-16-2013, 01:02 AM



Users browsing this thread: 1 Guest(s)