Quote:
Originally Posted by i8bit
I have everything working the way I want, but I am trying to do a check in the CLASS script to check if the baddie is a certain type.
PHP Code:
for (temp.npc : findAreaNPCs(this.x, this.y, 4, 4)) {
if (temp.npc.baddietype == "normal"){
temp.npc.trigger("Hurt");
}
}
What is line 2 suppose to look like to check if the baddietype == "normal"??
|
It's fine if you're setting
this.baddietype = "normal"; serverside in all the baddie NPCs you want to get hurt.