How should I make a script only run once?
Most, or pretty much all Lua coding I've seen so far follows the basic format of
Code:
function Create(self)
--Defining of some values
end
function Update(self)
--Defining some parameters and what to do if those parameters are met (if... then...) and checking them over and over till the end
end
function Update(self) checks the game for every single interval of time until whatever the script is attached to disappears.
But I was wondering about how the script should be written so that it only acts
once before self terminating, so as to save up processing power and make stuff more streamlined.