Hey guys,
So I've been trying to get all alive animals on the server, and I managed to get all of them, except that, there are some that have zero health.
I get the animals through this method:
Then i check the modelPrefab string to see if its one of the animals.Code:BaseNPC[] baseNpcs = Resources.FindObjectsOfTypeAll<BaseNPC>();
Then to check if they are alive I tried to use the properties of the BaseNPC base classes:
Anyone knows the right way to check if the entity/animal is up and running?Code:IsAlive() and IsDead() IsDisabled()
BaseNPC - 0 HP but alive?
Discussion in 'Rust Development' started by PedraozauM, Mar 4, 2015.