Flying & Hover Vehicle Scripts & Flying Player Scripts
by Michael Roberts 13 · in Torque 3D Beginner · 01/17/2015 (3:53 am) · 8 replies
Hey everyone its me again and i need
Flying and Hover vehicle scripts plus a flying player script.I've been trying to find them but no luck.I tried To make one but i have no clue of what to do.Can any one help me out
Flying and Hover vehicle scripts plus a flying player script.I've been trying to find them but no luck.I tried To make one but i have no clue of what to do.Can any one help me out
About the author
13 year old teen,n00b scriptor but skillful in 3d artists.Gamer 4 life
#2
01/18/2015 (2:07 pm)
Thanks for the script just a few things 1)How do you add weapons to the vehicle & 2) now when i exit the vehicle my camera barely moves Whats up with that?
#3
01/18/2015 (5:59 pm)
...
#4
As for why you have camera issues after dismounting, you've got me - check your console.log file and see if there are any errors when dismounting. Place comments around the dismount call in script and make them distinctive - this will help you spot it in that wall of text. Something like:
01/19/2015 (6:46 am)
For adding weapons to a vehicle, look at the included Cheetah vehicle.As for why you have camera issues after dismounting, you've got me - check your console.log file and see if there are any errors when dismounting. Place comments around the dismount call in script and make them distinctive - this will help you spot it in that wall of text. Something like:
// in default.bind.cs around line 840
function getOut()
{
vehicleMap.pop();
moveMap.push();
echo("------------DISMOUNTING-----------"); // Add this line
commandToServer('dismountVehicle');
echo("------------DISMOUNT DONE---------"); // Add this line
}This is known as "caveman debugging" and unless you're using a tool like Torsion it's about the only way to see what might be going wrong in your scripts.
#5
01/19/2015 (7:29 am)
I can't reproduce the mouse control problem but I found I can't re-mount the vehicle. Must be some problem with the unmount function. I'll look into it.
#6
01/19/2015 (3:58 pm)
Thanks for the help guys
#7
Couldn't ever get the rotations to be smooth without having the other be glitched up like no tomorrow.
As for re-mounting not working, it sounds like the vehicle thinks something is already mounted to the node position you're trying to mount to. Make sure you clear the vehicle node when you exit.
01/19/2015 (4:34 pm)
Vehicles with guns is one of those pesky little things that got me a while back when I was making a tank combat game... :xCouldn't ever get the rotations to be smooth without having the other be glitched up like no tomorrow.
As for re-mounting not working, it sounds like the vehicle thinks something is already mounted to the node position you're trying to mount to. Make sure you clear the vehicle node when you exit.
#8
10/08/2016 (2:56 pm)
"Make sure you clear the vehicle node when you exit." How do you do that?
Jason Campbell
All I did was get this guys resource to work in newer Torque3D.
www.garagegames.com/community/resources/view/20982
I just reused the cheetah body with no wheels because it already had all the nodes in place and really kinda looks like a space ship without the wheels.
Download FlyingCar.zip
www.mediafire.com/?uhboziwwpwtd4hc
just drop the game folder in your project folder and over-write.
Then make the changes to scriptExec.cs and player.cs
You have a flying car.