Gopher Posted November 18, 2010 Share Posted November 18, 2010 If I have an effect on an actor, and I want it to change when I target that actor with my crosshairs, how would I do that. Can I even do that? thanks in advance, and apologies if it is answered somewhere, but I have been searching for hours to no avail. Gopher Link to comment Share on other sites More sharing options...
documn Posted November 19, 2010 Share Posted November 19, 2010 For what you're looking at, you can try GetCombatTarget. For adding and removing effects, try AddSpell and RemoveSpell. Link to comment Share on other sites More sharing options...
Gopher Posted November 19, 2010 Author Share Posted November 19, 2010 For what you're looking at, you can try GetCombatTarget. For adding and removing effects, try AddSpell and RemoveSpell. I am not getting anything to detect when it is my combat target, even when I am shooting the crap out of it :) I am assuming that the conditional should be something like: if GetSelf == Player.GetCombatTarget doStuffendif Basically all the actors within 300m have a spell effect on them, and I want that spell effect to change when the player looks at them (ie under the crosshair) even when not in combat. Link to comment Share on other sites More sharing options...
Recommended Posts