ProjectSky Posted May 26, 2020 Share Posted May 26, 2020 i use the following code to modify zombie health, but i found some issue. local zb = getPlayer:getCell():getZombieList() if zb ~= nil then for i = 0, zb:size() - 1 do if zb:get(i):getHealth() < 2 then zb:get(i):setHealth(ZombRand(5.0, 10.0)) end end end When I kill these zombies, the information panel shows that the number of kill zombies keeps increasing. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now