SetPlayerScale Client function

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

This function was added in version: 0.0.4.1

Sets new scale for player.

Syntax

void setPlayerScale(int pid, float x, float y, float z)

Required Arguments

  • id: id of the player whom need to scale.
  • x: scale by x.
  • y: scale by y.
  • z: scale by z.

Example

function onPlayerCommand(cmd, params) {
   if (cmd == "scale") {
      local args = sscanf("fff",params);
      setPlayerScale(heroId,args[0],args[1],args[2]);
   }
}

addEventHandler("onPlayerCommand",onPlayerCommand);

Related functions

Template:CPlayer Function