function
drawWeapon (client-side)
Available since version: 0.2.0
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.
Declaration
void drawWeapon(int id, int weaponMode)
Parameters
int
id: the player id.int
weaponMode: the preffered weapon mode. For more information see Weapon mode constants.