Hello My Friends, I am new here in the fórum.
I'm trying to create a system of PEDS zombies, would not want to use the slothbot.
I want to create a sort of articial intelligence to 'my zombies'.
I need to create a system of blood (HP) for them.
- Blood 5000
- And want to check if he died.
Thus I check if he died right?
function pedDamagep(attacker, weapon, bodypart, loss)
if getElementData(source, "blood") <= 0 then
outputChatBox("Ped died!", getLocalPlayer())
local x, y, z = getElementPosition(source)
end
end
addEventHandler("onClientPedDamage", getRootElement(), pedDamagep)
I wonder how I define Hp to 5000 for my zombie.
Hugs.