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.

Declaration

bool hitPlayer(int id, int id)

Parameters

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

Returns bool

true if hit was successfully simulated, otherwise false.