Blockland Forums > Modification Help
scaled playertype
<< < (2/3) > >>
soba:

--- Quote from: Space Man on July 31, 2011, 01:59:26 PM ---Isn't it

%this.player.getDatablock();

?

--- End quote ---
still get a syntax error
dUMBELLS:

--- Code: ---%name=%this.player.dataBlock.getName(); //for a normal playertype this would be "PlayerStandardArmor"
if(%name $= "whatever")
{
   // stuff
}
--- End code ---
Daenth:

--- Code: ---package PlayerScale
{
function Player::changeDatablock(%player,%datablock,%client)
{
Parent::changeDatablock(%player,%datablock,%client);
if(%datablock == PlayerMineDig.getID())
%player.setScale("0.75 0.75 0.70");
}
};
activatePackage(PlayerScale);
--- End code ---
Wheatley:
Isn't it setPlayerScale("X Y Z"); ?
Or does setScale work too?
Wizzeh:
setPlayerScale accepts one integer.
Navigation
Message Index
Next page
Previous page

Go to full version