DarkXero Posted January 17, 2016 Share Posted January 17, 2016 SanityMonsterSpawner:UpdateSkitters(dt) Lines 477-489 local prefab = "shadowskittish" if GetMap() then local tile = GetMap():GetTileAtPoint(pt:Get()) if GetMap():IsWater(tile) then prefab = "shadowskittish_water" end end local monster = SpawnPrefab("shadowskittish") monster.Transform:SetPosition(pt:Get() ) monster:ListenForEvent("onremove", function() self.num_skitters = self.num_skitters - 1 end, monster ) self.noskitterstime = spawn_interval + math.random()*spawn_interval*.5 self.num_skitters = self.num_skitters + 1 The prefab variable isn't actually used when spawning the prefab for the monster variable. Link to comment Share on other sites More sharing options...
Developer Bryce Posted January 19, 2016 Developer Share Posted January 19, 2016 Oops. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.