GetPlayerWeaponMode Client function

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

This function was added in version: 0.0.0

Returns the weapon mode of the player.

Syntax

int getPlayerWeaponMode(int id)

Required Arguments

  • id: id of the player who's weapon mode you want to get.

Returns

  • the weapon mode if the specified player.

Example

function getWeaponMode()
{
    return getPlayerWeaponMode(heroId);
}

Related functions

Server

Shared