Emerald AI 3.0
Create high quality AI quickly with easy to use editors and tons of built-in features.
Last updated

Create high quality AI quickly with easy to use editors and tons of built-in features.
Last updated
public void SendPlayerDamage(int DamageAmount, Transform Target, EmeraldAISystem EmeraldComponent, bool CriticalHit = false)
{
// The rest of the Emerald AI code here...
//Sends damage to another function that will then send the damage to the UHFPS player.
DamageUHFPSPlayer(DamageAmount, Target);
}
void DamageUHFPSPlayer(int DamageAmount, Transform Target)
{
if(TryGetComponent(out PlayerHealth playerHealth) && !playerHealth.IsDead)
{
playerHealth.OnApplyDamage(DamageAmount, Target);
IsDead = playerHealth.IsDead;
}
}