Topic: Changing AI max health only
Hello guys, having a hard time changing AI health only, I tried the following code:
if (player == 1) {
if (this.namePlayer1 != null) {
this.namePlayer1.text = character.characterName;
print (character.lifePoints);
if (characterIndex == 1) {
character.lifePoints = 1000;
}
}
Is there a better way to do this? thanks! really appreciate the help