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 attackerId, int victimId)
Parameters
intattackerId: the attacker id.intvictimId: the victim id.
Returns bool
true if hit was successfully simulated, otherwise false.