Health API

Instantly Refill AI Health

Instantly heals this AI back to full health.

EmeraldAPI.Health.InstantlyRefillAIHealth(EmeraldSystem EmeraldComponent)
//Example - It is recomended that EmeraldComponent is cached somewhere
EmeraldSystem EmeraldComponent = GetComponent<EmeraldSystem>();
EmeraldAPI.Health.InstantlyRefillAIHealth(EmeraldComponent);

Update Health

Updates the AI's Current and Max Health.

EmeraldAPI.Health.UpdateHealth(EmeraldSystem EmeraldComponent, int MaxHealth, int CurrentHealth)
//Example - It is recomended that EmeraldComponent is cached somewhere
EmeraldSystem EmeraldComponent = GetComponent<EmeraldSystem>();
EmeraldAPI.Health.UpdateHealth(EmeraldComponent, 100, 100);

Last updated