Jump to content

Detecting actor at crosshairs


Gopher

Recommended Posts

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

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

doStuff

endif

 

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...