I'm trying to create a Power that, when used, gives the player an Ability that lasts 10 seconds. As long as the Ability is active, the next humanoid target the player attacks is instantly killed with 100% chance for a KillCam.
Does anyone have a good strategy for implementing such a Power? This would be trivial if there was an Actor.OnAttack Event, but without one I'm a bit unsure of how to approach this.
I'm going to try to have the Ability be a Cloak Effect that places a script on all enemies in a fairly wide radius that listens for an OnHit Event, where I can just Kill() the Actor that was hit and then Dispel() the Ability from the player. Or would killing the enemy with Kill() prevent the KillCam from firing?