GetPlayerArmor Client function

From Gothic 2 Online: Wiki
Revision as of 22:11, 23 May 2017 by Quarchodron (talk | contribs) (Created page with "__NOTOC__{{Client function}} {{Version Info|version=0.0.0}} Returns the armor of the player. == Syntax == <syntaxhighlight lang="cpp"> string getPlayerArmor(int id) </syntaxh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function was added in version: 0.0.0

Returns the armor of the player.

Syntax

string getPlayerArmor(int id)

Required Arguments

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

Returns

  • the armor if the specified player.

Example

function getArmor()
{
    return getPlayerArmor(heroId);
}

Related functions

Server

Shared