War Battles tutorial support thread - post your questions here

Self is a place to store variables accessible only to script instance itself:

function init(self)
    self.target =  foobar
end

function update(self, dt)
   print(self.foobar)
end

The self.target variable is accessible within the lifecycle functions of the script where it was created. You can read more here:

1 Like