Beispiel #1
0
 void checkHealthFraction()
 {
     if (npcHealth <= healthLow && npcHealth > 0)
     {
         npcManagerMasterScript.callNPCHealthLowEvent();
         healthCritical = true;
     }
     else if (npcHealth > healthLow && healthCritical)
     {
         npcManagerMasterScript.callHealthRecoveredEvent();
         healthCritical = false;
     }
 }