So I'm trying to make something that can spawn neutral Mega Crabs so that, while I'm playing against the enemy team, there are Mega Crabs everywhere killing us. And [part] of my code for it is something like:
Code:
function Update(self)
if timer:IsSimPastMS(30000) then
megacrab = CreateACrab("Mega Crab")
megacrab.Team = -1
timer:Reset()
end
or something like that... (Not at my game PC right now so I don't really remember and it's kinda 2 AM so yeah...)
So I spawn my object, and it should spawn the Mega Crab after 30 seconds and once I spawn it, it lags for 30 seconds...
Then 30 seconds later, the lag's gone. Mega Crabs are nowhere to be seen.
HALP?