Probles with BraveTree WarSparrow
by Simon Thoresen · in Torque Game Engine · 01/02/2004 (2:54 am) · 2 replies
Hi.
I was hoping someone could point me in the right direction to getting the WarSparrow pack from BraveTree up and running. I have modified game.cs so that it spawns the player as a warsparrow, and everything is loading nicely. Problem is, though, that the sparrow is not responding to any controls - even though game.cs directs input to it:
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 FlyingVehicle() {
dataBlock = WarSparrow;
client = %this;
};
MissionCleanup.add(%player);
// Player setup...
%player.setTransform(%spawnPoint);
%player.setShapeName(%this.name);
// Starting equipment
// %player.setInventory(Crossbow,1);
// %player.setInventory(CrossbowAmmo,10);
// %player.mountImage(CrossbowImage,0);
// Update the camera to start with the player
%this.camera.setTransform(%player.getEyeTransform());
// Give the client control of the player
%this.player = %player;
%this.setControlObject(%player);
}
Is there a point i'm missing? Please help me.
Regards,
Simon Thoresen
I was hoping someone could point me in the right direction to getting the WarSparrow pack from BraveTree up and running. I have modified game.cs so that it spawns the player as a warsparrow, and everything is loading nicely. Problem is, though, that the sparrow is not responding to any controls - even though game.cs directs input to it:
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 FlyingVehicle() {
dataBlock = WarSparrow;
client = %this;
};
MissionCleanup.add(%player);
// Player setup...
%player.setTransform(%spawnPoint);
%player.setShapeName(%this.name);
// Starting equipment
// %player.setInventory(Crossbow,1);
// %player.setInventory(CrossbowAmmo,10);
// %player.mountImage(CrossbowImage,0);
// Update the camera to start with the player
%this.camera.setTransform(%player.getEyeTransform());
// Give the client control of the player
%this.player = %player;
%this.setControlObject(%player);
}
Is there a point i'm missing? Please help me.
Regards,
Simon Thoresen
#2
06/12/2006 (2:08 am)
You can also solve this same problem by going into the world editor and raising your spawn spheres up some.
Torque Owner Raymond Delissio
I was just having the same problem and discovered that you need to change the flightCeiling in the warsparrow.mis file to a higher number. I think most of the terrain in the demo is higher than the default flight ceiling. Make sure you delete the compiled mission file before you test it out.
Regards,
Ray Delissio