Client:unequipMeleeWeapon Client function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version: 0.0.0

Unequips melee weapon on local player or npc.


void unequipMeleeWeapon(int id)

Required Arguments

  • id: id of local player or npc which will unequip melee weapon.


addEventHandler("onCommand", function(cmd, params)
    if (cmd == "mw")
        unequipMeleeWeapon(heroId) // unequips melee weapon on local player

Related functions