EquipMeleeWeapon Client function

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

This function was added in version: 0.0.0

Change player melee weapon.

Syntax

void equipMeleeWeapon(int id, int instance)

Required Arguments

  • id: id of the player who's melee weapon you want to change.
  • instance: new weapon.

Example

_equipMeleeWeapon <- equipMeleeWeapon;

function equipMeleeWeapon(val)
{
    _equipMeleeWeapon(heroId, val);
}

Related functions

Server

Shared