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 :-).
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 :-).
About the author
My 'little hobby project': http://www.virtuchat.com/
Torque Owner Jan Sorensen
VirtuChat.com
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 :-).