diff --git a/Healthbars/Healthbars.cs b/Healthbars/Healthbars.cs index 269cdaa..dec971e 100644 --- a/Healthbars/Healthbars.cs +++ b/Healthbars/Healthbars.cs @@ -54,6 +54,17 @@ public void Start() lastHealth = parent.healthHaver.GetCurrentHealth(); } + + //this will find the enemies that get missed from the addhook including spawned enemies + public void Update() + { + foreach (AIActor t in StaticReferenceManager.AllEnemies) + { + if (t.GetComponent() == null) + t.gameObject.AddComponent(); + + } + } } public class Healthbars : ETGModule