function attackPlayer (client-side)
Deprecated since version: 0.3.2
Note
The victim will receive damage calculated damage by the game.
This function is used to force npc to melee attack the other npc.
Declaration
bool attackPlayer(int attackerId, int victimId, int type)
Parameters
intattackerId: the attacker id.intvictimId: the victim id.inttype: the id of the hit type. For more information see Attack constants.
Returns bool
true if attack was successfully executed, otherwise false.