Embrace_It
New Member
- Reaction score
- 9
Hi all,
I'm making a spell that is channeled. Each instance of the spell has a struct to store caster, duration etc.
There is one tiny problem though. The spell is interruptible and I need to know when the caster stops channeling to stop the effect of the spell. I can register the event to a trigger member, but since you can't pass a method as an action for TriggerAddAction and can't make a normal function for it (how will it know which instance to stop?), I am out of ideas. So I'm writing here
I was also considering some sort of attachment system (Event comes to mind, but I'm not sure if it can be used here), but is it not possible to do without one?
Ask me to post the code if you need it.
Thanks in advance!
I'm making a spell that is channeled. Each instance of the spell has a struct to store caster, duration etc.
There is one tiny problem though. The spell is interruptible and I need to know when the caster stops channeling to stop the effect of the spell. I can register the event to a trigger member, but since you can't pass a method as an action for TriggerAddAction and can't make a normal function for it (how will it know which instance to stop?), I am out of ideas. So I'm writing here
I was also considering some sort of attachment system (Event comes to mind, but I'm not sure if it can be used here), but is it not possible to do without one?
Ask me to post the code if you need it.
Thanks in advance!