Help with Character Scales when game starts
by Aaron ward · in Torque Game Engine · 04/27/2006 (5:27 pm) · 2 replies
Hey everyone,
i would like to know how to set a characters / players scale when they spawn in game its currently set at 1 1 1 but i would like to set it around 2.3 2.3 2.3.
When i change this value in game and apply+save it, when i return to the game after quitting it, it has changed back to 1 1 1.
any help will be much appreciated
Thanks,
Aaron.C
i would like to know how to set a characters / players scale when they spawn in game its currently set at 1 1 1 but i would like to set it around 2.3 2.3 2.3.
When i change this value in game and apply+save it, when i return to the game after quitting it, it has changed back to 1 1 1.
any help will be much appreciated
Thanks,
Aaron.C
#2
find the datablock for the player....
That might work too.... i dunno.
04/27/2006 (6:20 pm)
You could also try opening up that same player.csfind the datablock for the player....
datablock PlayerData(PlayerBody)
{
scale="2.3 2.3 2.3";
renderFirstPerson = false;
emap = true;
className = Armor;
shapeFile = "~/data/shapes/player/player.dts";
cameraMaxDist = 3;
computeCRC = true;That might work too.... i dunno.
Torque Owner Cinder Games
open up starter.fps/server/scripts/game.cs
function GameConnection::createPlayer(%this, %spawnPoint) { if (%this.player > 0) { // The client should not have a player currently // assigned. Assigning a new one could result in // a player ghost. error( "Attempting to create an angus ghost!" ); } // Create the player object %player = new Player() { dataBlock = PlayerBody; client = %this; //add this here scale="2.3 2.3 2.3"; };find that block of code and add in the scale.
and for the ai players.....
scripts/server/aiplayer.cs
function AIPlayer::spawn(%name,%spawnPoint) { // Create the demo player object %player = new AiPlayer() { dataBlock = DemoPlayer; path = ""; //add this here scale ="2.3 2.3 2.3"; }; MissionCleanup.add(%player); %player.setShapeName(%name); %player.setTransform(%spawnPoint); return %player; }That should work.. if not let me know