Skip to content

function hitPlayer (client-side)

Available since version: 0.1.1

This function is used to simulate hit between attacker and victim.
It will only work with hero/npc. The victim will receive damage calculated damage by the game.


bool hitPlayer(int id, int id)


  • int id: the attacker id.
  • int id: the victim id.

Returns bool

true if hit was successfully simulated, otherwise false.