Jump to content
0 votes
Guests cannot vote

Add callback for attack target

  • Views: 3
  • Submitted:

I'm creating an event where infection is implemented in PLAYER_KILL mode, not by hit, because currently LuaAPI doesn't expose a reliable attack/hit callback to trigger character infection upon receiving an attack.

Therefore, I'm requesting a callback that captures the moment of the attack on the target (oPlayer), as currently we only have the death callback.

The idea would be a callback that intercepts the target's first hits.

onPlayerAttackHit(oPlayer, target)

User Feedback

Recommended Comments

There are no comments to display.

×
×
  • Create New...

Important Information


We use technologies, such as cookies, to customize content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy.