Jump to content

Recommended Posts

So I've been digging about through google, files and such, but so far i've found no way to configure the spawn rate / remove them from my server and or world in general. These creatures to me and utterly useless and provide no benefit but to tick me off.. So.. How would I get started in preventing them from spawning?

Link to comment
https://forums.kleientertainment.com/forums/topic/71678-spider-queen-grass-gecko/
Share on other sites

6 hours ago, Lokoluna said:

How would I get started in preventing them from spawning?

Well, I don't know how to make them not spawn at all but if you want you can put this in your modmain.lua it will basically do the same thing ;)

Spoiler

AddPrefabPostInit("spiderqueen", function(inst) -- Remove on spawn.
   inst:DoTaskInTime(0.1, function(inst)
      if inst.components.health and not inst.components.health:IsDead() then
      inst:Remove()
      end
   end)
end)

AddPrefabPostInit("grassgekko", function(inst) -- Remove on spawn.
   inst:DoTaskInTime(0.1, function(inst)
      if inst.components.health and not inst.components.health:IsDead() then
      inst:Remove()
      end
   end)
end)

 

What this does is it removes any grassgekkos or spiderqueens whenever they spawn, poor them... hahaha!

Edited by SuperDavid
1 hour ago, SuperDavid said:

Well, I don't know how to make them not spawn at all but if you want you can put this in your modmain.lua it will basically do the same thing ;)

  Hide contents


AddPrefabPostInit("spiderqueen", function(inst) -- Remove on spawn.
   inst:DoTaskInTime(0.1, function(inst)
      if inst.components.health and not inst.components.health:IsDead() then
      inst:Remove()
      end
   end)
end)

AddPrefabPostInit("grassgekko", function(inst) -- Remove on spawn.
   inst:DoTaskInTime(0.1, function(inst)
      if inst.components.health and not inst.components.health:IsDead() then
      inst:Remove()
      end
   end)
end)

 

What this does is it removes any grassgekkos or spiderqueens whenever they spawn, poor them... hahaha!

Very Helpful Thanks! Though i wish i could prevent the geckos from growing from my grass.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...