Game Development Community

The scale command?

by Jan Sorensen · in Torque Game Engine · 12/27/2009 (1:08 pm) · 1 replies

Hi here :-).

I try to change the size of my aiPlayer in the player script with:
shapeFile = "~/data/shapes/player/Figure.dts";
scale = "1.6 1.6 1.6"; // Here.... ***

But the ‘scale command’ not works, the Bot has not change size? Can anybody here tell me what I’m doing wrong? The command works fine directly in the ‘World Editor’.

Jan :-).

#1
12/27/2009 (3:52 pm)
Hi again :-).

I found myself the answer. Goings to be placed in the 'ai-spawn function', thats all.

%player = new AIPlayer() {
dataBlock = %playerDatablok;
aiPlayer = true;
scale = "1.6 1.6 1.6"; // Here ***
};

It's works, thanks Jan :-).