Jump to content

[Weapon Script] Looking for specific Event


Zorkaz

Recommended Posts

If you know the target reference then RegisterForHitEvent & OnHit

 

If you dont know the target reference then perk entry ApplyCombatHitSpell will get the hit AkTargetRef ...

 

... BUT if the player has multiple ApplyCombatHitSpell perks the game only seems to trigger one of them and you cant detect if the player already has one (just like multiple AddActivate on a target).

 

I fiddled around with my own player cloak magiceffect and RegisterForHitEvent all actors it touches ... but it was just a bit too dirty for me.

Link to comment
Share on other sites

Thanks for the quick reply.

 

Here was my quick solution

1. Create a unique damage type (Like DTPoison, DtFire...) and give it a unique spell.

2. Create a spell and magic effect - Fire and Forget on Contact

3. The accompanying script has Event OnEffectStart - AkTarget.kill()

 

And link it all together of course

Link to comment
Share on other sites

Another workaund for the ApplyCombatHitSpell conflict was to create a legendary effect OMOD which would pass back the akTarget to do stuff on, but ofc that means game cant roll and players cant apply a normal legendary effect (because swapping legendary effects is a must have response to crap RNG).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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