46
Programming / Re: When restart shoot target?
« on: December 27, 2012, 11:04:20 AM »
Instead of targeting a location, target a specific monster. As long as that monster is visible/alive, you just always re-target it. Otherwise, you can work your way down a few criteria, such as nearest monster.Code: [Select]If LastTarget is not null and visible and Alive:
LastTarget -> Target
Else if GetNearestEnemy() is not null:
GetNearestEnemy() -> Target
Else:
Self -> Target
Great idea this is, Sir.
BTW I will add to the ToDo list the "target enemy" instead of "target location".
I also have a "target nearest" for later versions.