Can i change the max health amount of foundation? If yes, can i set diffrenet max amount of health for different foundations.
Changing entity/foundation health?
Discussion in 'Rust Development' started by HOUGAN_Y, Aug 19, 2017.
-
I think it’d probably be easier to modify the players damage to particular foundations.
-
-
-
-
-
-
-
Code:public void setMaxHealth(BaseEntity entity) { BaseCombatEntity ent = (BaseCombatEntity)entity; //Gets the BaseCombatEntity from the entity itself. ent._maxHealth = 500f; //Sets the max health ent.ResetState(); //Resets the health to max }