Blockland Forums > Modification Help

Resizing

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

jes00:

This is the script I'm using

--- Code: --- function BlackPotionImage::onFire(%this,%obj,%slot,%player)
{


for(%i=0;%i<5;%i++)
{
%toolDB = %obj.tool[%i];
if(%toolDB $= %this.item.getID())
{
setPlayerScale(0.200);
%obj.emote(BlackPotiondrinkImage);
%obj.tool[%i] = 0;
%obj.weaponCount--;
messageClient(%obj.client,'MsgItemPickup','',%i,0);
serverCmdUnUseTool(%obj.client);
break;
}
}
}
--- End code ---


Nexus:

%player.setplayerscale("0.2 0.2 0.2");

Headcrab Zombie:


--- Code: --- function BlackPotionImage::onFire(%this,%obj,%slot)
{


for(%i=0;%i<5;%i++)
{
%toolDB = %obj.tool[%i];
if(%toolDB $= %this.item.getID())
{
%obj.setPlayerScale(0.200);
%obj.emote(BlackPotiondrinkImage);
%obj.tool[%i] = 0;
%obj.weaponCount--;
messageClient(%obj.client,'MsgItemPickup','',%i,0);
serverCmdUnUseTool(%obj.client);
break;
}
}
}
--- End code ---


Chrono:


--- Quote from: Nexus on July 05, 2011, 03:40:32 PM ---%player.setplayerscale("0.2 0.2 0.2");

--- End quote ---
Wrong.

%obj.setPlayerScale(0.2);

Greek2me:


--- Quote from: Chrono on July 05, 2011, 08:55:51 PM ---Wrong.

%obj.setPlayerScale(0.2);

--- End quote ---
No, you need to define the scale for all 3 dimensions. %obj.setPlayerScale(0.2 0.2 0.2);

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

Go to full version