View Single Post
03-14-09, 03:42 AM   #2
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
That's doable, i had something similar very long ago.

Was something like this roughly:
Code:
function self.Banzai(self, unit, aggro)
	if aggro == 1 then
		self.Something:SetVertexColor(1,0,0)
	else
		self.Something:SetVertexColor(1,1,1)
	end
end
But did you consider using the build in (Blizzard) threat system, then all you'd have to do is create a default threat function to affect self.threat or create your own threat function and affect anything you want. The latter is what i'm currently using.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }

Last edited by Caellian : 03-14-09 at 04:03 AM.
  Reply With Quote