GetPlayerScale Client function

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

This function was added in version:

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


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

Required Arguments

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


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


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

Related functions

Template:CPlayer Function