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)
intid: the attacker id.
intid: the victim id.
true if hit was successfully simulated, otherwise