Skip to content

function attackPlayerRanged (client-side)

Available since version: 0.1.3


The victim will receive damage calculated damage by the game.

This function is used to force npc to ranged attack the other npc.


bool attackPlayerRanged(int attackerId, int victimId)


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

Returns bool

true if attack was successfully executed, otherwise false.