Hi,

I'm working in NPC like a tower. Staying in the position, and attack enemies with a fireball/rock/or other effect (with delay between attacks). Any have idea or example of this?
My problems are the attack effect and how to work if any player in X range, enter in this range, the npc tower attack him.

Thanks and sorry for my noobs question.

:(
 
Here's some examples:

Effects:
- Fireball.cs
- CrushingBlow.cs

Range check:
- WarningItem.cs
- MorphItem.cs

AI:
- TownCrier.cs (if going the Mobile path, might be easier)
- BladeSpirits.cs (if going for the BaseCreature path)

There's alot of possibility, but those would surely help you come up with a good understanding of how to send effects from npcs.
 
Back