Run own code when Ability (DetectObjectAbilityBase) is triggered


New member
I was just wondering what is the best way to do this and I have already setup my own Ability with script and a box trigger collider for it.
It works fine but but now I want to run my own code when the trigger happens.
So should I override the OnTriggerEnter in my new Ability script (it inherits DetectObjectAbilityBase)? The problem here is that all the logic is in the base OnTriggerEnter where we check for Layers an so on and I'm trying to separate my code with opsive.
I problobly could write my code in the base class (DetectObjectAbilityBase) but that feels wrong.