Skip to content

function drawWeapon (client-side)

Available since version: 0.2

This function will cause hero/npc to draw a weapon.
If hero/npc doesn't have equipped weapon assosiated with the preffered weapon mode, then it will try to draw melee weapon, otherwise WEAPONMODE_FIST will be used instead.


void drawWeapon(int id, int weaponMode)


  • int id: the player id.
  • int weaponMode: the preffered weapon mode. For more information see Weapon mode constants.