Author Topic: Need help with XYZ Player Scale script.  (Read 566 times)

I've been trying to get this player scale script to work, though i haven't been able to recall my former Torque skills.

If anyone could help, it would be very appreciated.

Code: [Select]
registerOutputEvent("Player", "ScaleXYZ", "vector", 1);

function Player::ScaleXYZ(%obj,%x,%client){
%y=getword(%x,1);
%z=getword(%x,2);
%k=getword(%x,0);
if(%y>5){
%y=5;
}
if(%y<0.1){
%y=0.1;
}
if(%k>5){
%k=5;
}
if(%k<0.1){
%k=0.1;
}
if(%z>5){
%z=5;
}
if(%z<0.1){
%z=0.1;
}
%x=%k SPC %y SPC %z;
%client.player.setscale(%x);
}


Thanks!