Talk:Volt Goat/@comment-12669588-20140429061446/@comment-12669588-20140429062307

Wait, found periodic spawner. This is the math behind the spawning. function PeriodicSpawner:Start local t = self.basetime + math.random*self.randtime self.target_time = GetTime + t   self.task = self.inst:DoTaskInTime(t, DoSpawn) end So when the function begins, it makes the local time equal the basetime (relative to itself) plus randtime (which was stated as 60 earlier in the script) multiplied by a random number. With the time, t, it uses this to wait for that long before spawning another goat (as long as the previous if statements in the document are true, which can be found in \data\DLC0001\scripts\components\periodicspawner.lua (open it with a text editor like notepad)).