Vehicles and me
by Bill Henderson · in Torque Game Engine · 01/09/2002 (4:02 pm) · 23 replies
HELP!!!
I have no idea how to get vehicles into torque.
I looked through some of the tutorials and all they tell you is how to make vehicles assuming there is allready vehicles in the game.
Have I missed something?
I have no idea how to get vehicles into torque.
I looked through some of the tutorials and all they tell you is how to make vehicles assuming there is allready vehicles in the game.
Have I missed something?
About the author
#2
Am I just supposed to be "inspired" by the vehicle.cs and vehicle_shrike.cs files? are there any other files i need to be "inspired" by to get vehicles into my game?
01/11/2002 (8:19 am)
I have Tribes 2.Am I just supposed to be "inspired" by the vehicle.cs and vehicle_shrike.cs files? are there any other files i need to be "inspired" by to get vehicles into my game?
#3
01/11/2002 (8:24 am)
And just to remove any worry I dont plan on using Tribes 2's vehicle scripts when we release the game, I just need something to work with to learn how to use vehicles.
#4
01/11/2002 (2:04 pm)
bill I just got a vehic in would you like a walk thru?
#6
01/11/2002 (3:28 pm)
i am currently working on an extensive research of vehicle for the community changes needed . . . . Anthony
#7
goto http://gameznet.com/v12/scripting/vehicletutorial.shtml
01/13/2002 (2:09 pm)
actually i found a really good tutorialgoto http://gameznet.com/v12/scripting/vehicletutorial.shtml
#8
when I finished I could spawn a vehicle but not get in :(
Has anyone ran into this problem?
01/16/2002 (7:50 pm)
I followed the tutorial to the letter..when I finished I could spawn a vehicle but not get in :(
Has anyone ran into this problem?
#9
Did you modify player.cs with this ?
function Armor::onCollision(%this,%obj,%col)
{
if (%obj.getState() $= "Dead")
return;
// Try and pickup all items
if (%col.getClassName() $= "Item")
%obj.pickup(%col);
// Mount vehicles
%this = %col.getDataBlock();
if ((%this.className $= WheeledVehicleData ||
%this.className $= FlyingVehicleData ||
%this.className $= HoverVehicleData)
&& %obj.mountVehicle &&
%obj.getState() $= "Move" && %col.mountable) {
// Only mount drivers for now.
%node = 0;
%col.mountObject(%obj,%node);
%obj.mVehicle = %col;
}
}
01/17/2002 (8:32 am)
Hi.Did you modify player.cs with this ?
function Armor::onCollision(%this,%obj,%col)
{
if (%obj.getState() $= "Dead")
return;
// Try and pickup all items
if (%col.getClassName() $= "Item")
%obj.pickup(%col);
// Mount vehicles
%this = %col.getDataBlock();
if ((%this.className $= WheeledVehicleData ||
%this.className $= FlyingVehicleData ||
%this.className $= HoverVehicleData)
&& %obj.mountVehicle &&
%obj.getState() $= "Move" && %col.mountable) {
// Only mount drivers for now.
%node = 0;
%col.mountObject(%obj,%node);
%obj.mVehicle = %col;
}
}
#10
Where is this located?
I still cant get into my vehicle, I made sure that I had the changes from the above post.
HELP
01/17/2002 (3:29 pm)
when i run the game it gives an error the the ShrikeDamageProfile cant be found.Where is this located?
I still cant get into my vehicle, I made sure that I had the changes from the above post.
HELP
#11
01/17/2002 (11:35 pm)
ShrikeDamageProfile's defined in T2's damageTypes.cs.
#12
Thank you
01/18/2002 (6:32 am)
i have little subquestion to this topic. my vehicles are running and i can mount them. but when i dismount the vehicle, i can't remount it. is it a special function are what else do i have to do?Thank you
#13
Has anyone ran into any other problems like this?
01/21/2002 (7:58 am)
Well, so far I have tried every fix posted in this thread and I still cant figure out why I cant get into my vehicle.Has anyone ran into any other problems like this?
#14
%vehicle.mountable=true;
....
Actually I bet it is because the function expected
setMountVehicle(..) in the script has been changed to
MountVehicles(..)
so find in player.cs
%obj.schedule(4000, "setMountVehicle", true);
and change to
%obj.schedule(4000, "MountVehicles", true);
:) im sure that is why you cant get back in
01/25/2002 (7:54 pm)
have you set the mountable flag?%vehicle.mountable=true;
....
Actually I bet it is because the function expected
setMountVehicle(..) in the script has been changed to
MountVehicles(..)
so find in player.cs
%obj.schedule(4000, "setMountVehicle", true);
and change to
%obj.schedule(4000, "MountVehicles", true);
:) im sure that is why you cant get back in
#15
01/27/2002 (10:41 am)
Does anyone have a tutorial?
#16
You have to sign up for the forums but its there under tutorials.
Anybody heard whats up with V12 Powered?
01/27/2002 (12:38 pm)
I found a mirror of the original missing V12 Powered tutorial. It is at V12 Mod Central: v12.mgonetwork.com/You have to sign up for the forums but its there under tutorials.
Anybody heard whats up with V12 Powered?
#17
There is a dark, evil force at work here, one that wants to forever prevent me from ever getting vehicles into my game!
01/29/2002 (6:44 am)
I can't seem to access the forums at v12.mgonetwork.com either :(There is a dark, evil force at work here, one that wants to forever prevent me from ever getting vehicles into my game!
#18
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2036
:) hope it solves the troubles
lemme know if it is not informative enuff
01/29/2002 (12:50 pm)
try out a tut i wrote available here:www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2036
:) hope it solves the troubles
lemme know if it is not informative enuff
#19
Thanks a lot!
btw. I've read the DTS Exporter docs on how to model a vehicle, pretty sparse. Do you know of any other docs on this subject?
01/29/2002 (2:15 pm)
Yes, I just found your tutorial. :) Looks great, haven't had a chance to try it yet, but it seems to fit with everything I've read previously on vehicles. Thanks a lot!
btw. I've read the DTS Exporter docs on how to model a vehicle, pretty sparse. Do you know of any other docs on this subject?
#20
01/31/2002 (5:20 pm)
I tried the tut. on vehicles last night. It worked for me after I found a silly little typo that was screwing it up for a while. It was fun to fly the drone around, its got some cool handling :) Once I got the typo out of the new one I found the same problem with my vehicles using the shrike and older tutorial taht was out there and got mounting working properly.
Associate Anthony Rosenbaum