GetPlayerScale Client function

From Gothic 2 Online: Wiki
Revision as of 16:00, 1 January 2017 by HammelGammel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function was added in version: 0.0.4.1

Returns the x-, y- and z-scale of the player.

Syntax

table[x, y, z] getPlayerScale(int id)

Required Arguments

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

Returns

  • x: x-scale of the player.
  • y: y-scale of the player.
  • z: z-scale of the player.

Example

function checkPlayerSize(id)
{
    if(getPlayerScale(id).y > 3)
    {
        print("Playersize > 3");
    }
}

Related functions

Template:CPlayer Function