GetPlayerMeleeWeapon Client function

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

This function was added in version: 0.0.0

Returns the Melee Weapon of the player.

Syntax

int getPlayerMeleeWeapon(int id)

Required Arguments

  • id: id of the player who's Melee Weapon you want to get.

Returns

  • the Melee Weapon if the specified player.

Example

function getMeleeWeapon()
{
    return getPlayerMeleeWeapon(heroId);
}

Related functions

Server

Shared