Game Development Community

CarPack_1_0_0

by Fucifer · in Torque Game Engine · 12/20/2006 (9:54 am) · 1 replies

I am try to get the health bar to work with the carpack. This is how I have it setup. I use the normal setup for the CarPack. I then went into game.cs file and modify the code as follow.


// Create the player object
%player = new Player() {
dataBlock = PlayerBody;
client = %this;
};

and change it to this:

// Create the player object
%player = new WheeledVehicle() {
datablock = GXcarRally1; // Change GXcarRally1 to one you want, Tip the car name is
// the same as the cs file.
client = %this;
};

The change allow me to start a mission with the player mounted and 3rd view with a weapon. I can shoot at other car and collision work. I have no health on any cars. I try to get the health bar to work on the player car. I try the death car tutorial and various others but nothing seem work. Oh I am doing this with Torque 1.5.0. Do any one have any ideas?