Get the caster of a behavior

The Undaddy

Creating with the power of rage
Reaction score
55
Is there any function that gets which unit has inflicted a behavior on a unit?
 

Flare

Stops copies me!
Reaction score
662
Is there any function that gets which unit has inflicted a behavior on a unit?

You could try using an intermediary Damage and Apply Behaviour effects, in conjunction with the Unit Takes Damage event. While it's not as straight-forward as you could hope for, it'd be the first thing that springs to mind. The only issue I can think of would be that you probably wouldn't be able to find out who applied the Behavior apart from at initial application (unless you want store the 'casting' unit in a Bank, using the Behaviour [if possible] and the target unit as your keys)

This tutorial explains it in greater detail, but you should be able to 'catch' the application of the behavior, along with who applied it (assuming you set up the Effects properly).
 

The Undaddy

Creating with the power of rage
Reaction score
55
Well that'll work though it's kind of annoying to have to use set effects for every attribute modding effect :thdown: Hope they add something like caster of behavior at least for the attribute change event.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top