I was trying to use a loop to go through all needs and do stuff with them when I fell upon this error here:
Code: Select all
ScriptSystem Error : RUNTIME ERROR : [string "function this.Needs.NeedsMetaTable:__index(..."]:3: attempt to index field 'UNUSED' (a nil value)
Now, this error appeared even if the only code I had within the loop was:
local alcoholNeed = this.Needs.Alcohol or 0
So if anyone here knows why that is happening please let me know asap as I want to update my mod before leaving on holidays!