function npcAttackRanged (server-side)
Available since version: 0.3.0
Note
Required equiped and drawn bow/crossbow.
This function enqueues attack ranged action to the remote NPC action queue.
Declaration
void npcAttackRanged(int attacker_id, int enemy_id, bool turn = false)
Parameters
intattacker_id: the remote npc id.intenemy_id: the remote npc or player id.boolturn: passtrueto turn the attacker toward the enemy, otherwisefalse.