I know this is a seriously nooby question but… I want a variable which isnt for every entity of its own type.
For example, I have this variable called tooMuch = 1 which is declared outside the methods at the top of the init.lua file. I need to change tooMuch = 0 whenever ENT:Use is called so I do this:
self.tooMuch = 0
But I have one problem… How would I go about doing this so I could have multiple of the same entity but with different tooMuch values? For example, I spawn two of these entities and only press E on one of them. How can I make it so that the variable doesnt change on all the same entities?