Game Development Community

Player and vehicle combination.

by Deleted deleted · in Torque Game Engine · 09/29/2004 (6:48 pm) · 4 replies

I am creating a vehicle only based game and I am sure this question is easily answered, but I need the vehicles the pretty much be the players. Do i create a invisible player and have it mount the vehicle or do I create a vehicle and just add the properties that I would to a normal player to the vehicles data block. I am rather new to torque scripting and am not sure how the datablocks work 100%. I am missing the default scripting reference with all my variables its right in front of me I know it, anyone care to point me in the proper direction?

-- EDIT --
To fix misunderstanding of my level of knowledge :)

I need to add variables like health and ammo to vehicles, because I have no players, only vehicles. I am not executing player.cs, only the vehicle script file I created. I have been able to get proper physics and springs and particle emmitors and sounds, but how can I add to the vehicle health armor energy and other things like that, custom variables to the datablock.
-- EDIT --

#1
09/29/2004 (6:53 pm)
Ok, #1 have you bought the TGE/Torque Game Engine.
#2 if you have bought it then all you have to do is go into the example folder and open main.cs with notepad. Then change the line $defaultGame = "starter.fps"; to $defaultGame = "starter.racing"; and run the the game.
#2
10/01/2004 (5:33 am)
Umm, right, I think im passed that stage ;)

Let me reword this:

I need to add variables like health and ammo to vehicles, because I have no players, only vehicles. I am not executing player.cs, only the vehicle script file I created. I have been able to get proper physics and springs and particle emmitors and sounds, but how can I add to the vehicle health armor energy and other things like that, custom variables to the datablock.
#3
10/01/2004 (5:51 am)
OK I think this little project some people made should help you out in that case.
users.pandora.be/nitrogame/download.html
#4
10/01/2004 (6:28 am)
Nevermind found the damage and eneergy bar tutorial in the forums. No idea what that nitro dealy is though, running a mac right now and I am no mood to try running that in VPC :)