Jump to content

Recommended Posts

Just now, makar5000 said:

You want me to pay you? :)

Naw, just a phrase I learned. Instead of asking 'if something is possible', ask 'does anyone know how to do this'; the difference in wording may not seem like much, but in reality anything is possible, just depends on if someone has done it before.

2 minutes ago, Kzisor said:

Naw, just a phrase I learned. Instead of asking 'if something is possible', ask 'does anyone know how to do this'; the difference in wording may not seem like much, but in reality anything is possible, just depends on if someone has done it before.

Oh, ok, I'll eddit it

  • Like 1
local function NewExplode(self)
	local _Explode = self.Explode
	self.Explode = function(self, target)
		if self.inst and self.inst.prefab == "trap_teeth" then
			if target and target.prefab == "pigman" then
				return _Explode(self, target)
			end
		else
			return _Explode(self, target)
		end
	end
end

AddComponentPostInit("mine", NewExplode)

Tooth trap only pig.

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...