Blockland Forums > Modification Help

scaled playertype

Pages: << < (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.

Pages: << < (2/3) > >>

Go to full version