Author Topic: serverCmdResize  (Read 871 times)

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: [Select]
function serverCmdResizeme(%client,%x,%y,%z)
{
findClientByName(%client).Player.SetScale(%x @ %y @ %z);
}

I have no idea, it's definitely going to take an experienced coder to help you with such a huge script.

Code: [Select]
function serverCmdResizeme(%client,%x,%y,%z)
{
findClientByName(%client).Player.SetScale(%x @ " "@ %y @ " " @ %z);
}

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

Code: [Select]
function serverCmdResizeme(%client,%x,%y,%z)
{
%client.Player.SetScale(%x SPC %y SPC %z);
}


Code: [Select]
function serverCmdResizeme(%client,%x,%y,%z)
{
%client.Player.SetScale(%x SPC %y SPC %z);
}


yes

You don't use findclientbyname unless you have a good reason to.

wheres the link for it please write it to me  :nes: :iceCream: :panda: :cookieMonster: :cookie:

wheres the link for it please write it to me  :nes: :iceCream: :panda: :cookieMonster: :cookie:

Holy loving bumpertons of stupidity.


wouldn't it be better to loop it and grow slower? unless you want it instant that is

It would look better, but it may be too complex for him.

Off topic, you reminded me of a couple weapons I made back during 0002

It would look better, but it may be too complex for him.

>Too complex for halcynthis