Blockland Forums > Modification Help
serverCmdResize
halcynthis:
I recently rejoined blockland and im going to start learning torque again. I made a simple script to start off with, but I believe i forgot the arguements for function serverCmd, heres the code im trying.
--- Code: ---function serverCmdResizeme(%client,%x,%y,%z)
{
findClientByName(%client).Player.SetScale(%x @ %y @ %z);
}
--- End code ---
Moybus:
I have no idea, it's definitely going to take an experienced coder to help you with such a huge script.
blitz9100:
--- Code: ---function serverCmdResizeme(%client,%x,%y,%z)
{
findClientByName(%client).Player.SetScale(%x @ " "@ %y @ " " @ %z);
}
--- End code ---
Servercmd was correct.The setscale needs to be a vector though.("1 2 3").Then all you need to do in chat is type "/resizeme 2 2 2" and you will be 2x your normal size
Headcrab Zombie:
--- Code: ---function serverCmdResizeme(%client,%x,%y,%z)
{
%client.Player.SetScale(%x SPC %y SPC %z);
}
--- End code ---
otto-san:
--- Quote from: Headcrab Zombie on August 11, 2010, 05:19:54 PM ---
--- Code: ---function serverCmdResizeme(%client,%x,%y,%z)
{
%client.Player.SetScale(%x SPC %y SPC %z);
}
--- End code ---
--- End quote ---
yes
You don't use findclientbyname unless you have a good reason to.