Author Topic: Changing Scale  (Read 2219 times)

How do you change the scale of a player? I was just going to check the script of the scale changer (doh!), but I accidentally deleted ma old Blockland, and the link for it is broken now.

%client.player.setscale(1,1,1); I believe.


Uh oh! So I have this line of code in my script:
Code: [Select]
%target.player.setscale(1.1, 1.1, 1.2);(%target cause that's the variable that I'm using)
But it won't change the scale. I type the command, and it does nothing, in the console it says:
Code: [Select]
Player::SetScale - wrong number of arguments.
Usage: (Point3F scale)

%client.player.setScale(1.1 SPC 1.1 SPC 1.2);?

%client.player.setscale("1.1 1.1 1.2");

Trying...
In red in the console when exec'd:
Code: [Select]
...
%target.player.setscale(1.1 1.1 ##1##.1);
...

D:
« Last Edit: February 25, 2008, 08:18:13 PM by LegoEggo »

%target.player.setscale(1.1 1.1 1.1);

Typo... duh. There's a reason why the ##s are around the "1", that's what I need to know.


Tested my way... works, you just ignored it.

%target.player.setScale(1.1 SPC 1.1 SPC 1.1);

Yeah, sorry, but I trust someone like Rkynick a LITTLE more than someone I've never seen script... [/sarcasm]

Trying...

Worked, thanks.

Yeah... I do a bit of scripting when I'm bored/have free time.

Lego its because you didnt use quotes, I used quotes.
%target.player.setscale("1.1 1.1 1.1");
not
%target.player.setscale(1.1 1.1 1.1);

Oh. That'd probably help =P