Check if there are mobs alive
#6
(05-06-2013, 09:38 PM)STR_Warrior Wrote: something like this
function OnTick()
	local LoopEntitys = function( Entity )
		if Entity:IsMob() then
			if Entity:GetUniqueID() == "Something" --something here to check if it is the right mob.
				some code here to do stuff
			end
		end
	end
end
But, I want to check if there isn't any mob and then execute the code I want. I think this code is for check if there is any mob, and if there is at least one, execute some code.
Reply
Thanks given by:


Messages In This Thread
Check if there are mobs alive - by tonibm19 - 05-06-2013, 09:28 PM
RE: Check if there are mobs alive - by NiLSPACE - 05-06-2013, 09:30 PM
RE: Check if there are mobs alive - by tonibm19 - 05-06-2013, 09:33 PM
RE: Check if there are mobs alive - by xoft - 05-06-2013, 09:38 PM
RE: Check if there are mobs alive - by NiLSPACE - 05-06-2013, 09:38 PM
RE: Check if there are mobs alive - by tonibm19 - 05-06-2013, 09:42 PM
RE: Check if there are mobs alive - by tonibm19 - 05-07-2013, 12:00 AM
RE: Check if there are mobs alive - by NiLSPACE - 05-06-2013, 09:45 PM
RE: Check if there are mobs alive - by NiLSPACE - 05-07-2013, 12:03 AM
RE: Check if there are mobs alive - by tonibm19 - 05-07-2013, 02:30 AM
RE: Check if there are mobs alive - by NiLSPACE - 05-07-2013, 02:39 AM
RE: Check if there are mobs alive - by xoft - 05-07-2013, 02:41 AM
RE: Check if there are mobs alive - by tonibm19 - 05-07-2013, 04:51 AM
RE: Check if there are mobs alive - by NiLSPACE - 05-07-2013, 05:03 AM
RE: Check if there are mobs alive - by xoft - 05-07-2013, 05:44 AM
RE: Check if there are mobs alive - by tonibm19 - 05-07-2013, 06:36 AM
RE: Check if there are mobs alive - by tonibm19 - 05-08-2013, 05:26 AM
RE: Check if there are mobs alive - by xoft - 05-08-2013, 05:31 AM
RE: Check if there are mobs alive - by tonibm19 - 05-08-2013, 05:34 AM
RE: Check if there are mobs alive - by xoft - 05-08-2013, 06:13 AM
RE: Check if there are mobs alive - by tonibm19 - 05-08-2013, 06:26 AM
RE: Check if there are mobs alive - by xoft - 05-08-2013, 06:30 AM



Users browsing this thread: 17 Guest(s)