OnSpawningEntity
#1
I'm trying to make a plugin that makes sure mobs spawn in the right biome.
Here's the code.
Code:
function OnSpawningEntity(World, Entity)
    if (Entity:GetClass() == "wolf" and World:GetBiomeAt(Entity:GetPosX(),Entity:GetPosZ()) ~= 4) then  
        Entity:Destroy()
    end
end
It don't works, wolves spawn everywhere.
I don't get any error in console
Reply
Thanks given by:


Messages In This Thread
OnSpawningEntity - by tonibm19 - 08-09-2013, 04:27 AM
RE: OnSpawningEntity - by NiLSPACE - 08-09-2013, 04:31 AM
RE: OnSpawningEntity - by bearbin - 08-09-2013, 04:31 AM
RE: OnSpawningEntity - by tonibm19 - 08-09-2013, 05:05 AM
RE: OnSpawningEntity - by xoft - 08-09-2013, 04:41 PM
RE: OnSpawningEntity - by NiLSPACE - 08-09-2013, 07:32 PM
RE: OnSpawningEntity - by bearbin - 08-09-2013, 08:00 PM
RE: OnSpawningEntity - by xoft - 08-10-2013, 04:19 AM



Users browsing this thread: 4 Guest(s)