Data Realms Fan Forums
http://45.55.195.193/

Vehicle control problems
http://45.55.195.193/viewtopic.php?f=73&t=19650
Page 1 of 1

Author:  Roast Veg [ Tue Aug 31, 2010 5:07 pm ]
Post subject:  Vehicle control problems

OK, so I was trying to make my own copy of the bullet train from the vanilla skirmish map user controlled, and I couldn't get it to do anything other than mash into the terrain. I was certain that the problem is located in the code I entered, but I couldn't find where.

EDIT : Went through the code cleaning it out. Finally stopped it mashing terrain, and tried to set up keypress detection.

EDIT TWO:

Code:
Resolved all issues using a much more reliable source of information than the one I had been previously.


I cleared out some A LOT of the AI bits and pieces, but I did't think that was what was affecting it. Thanks TLB for your help.

RESOLVED

Author:  TheLastBanana [ Tue Aug 31, 2010 9:24 pm ]
Post subject:  Re: Vehicle control problems

You haven't defined Ctrl. Make sure to check the console for errors.

Author:  Roast Veg [ Tue Aug 31, 2010 11:59 pm ]
Post subject:  Re: Vehicle control problems

^Cleared out that bit, and tried to use a different key-detection system.

Also changed the hovering system so it doesn't mash terrain, now it just falls on top of it and does nothing.

Author:  TheLastBanana [ Wed Sep 01, 2010 12:22 am ]
Post subject:  Re: Vehicle control problems

I'm not sure what you mean by "mashing terrain". I'm assuming the issue is that it always stays hovering at the same level. The reason is that the script is designed to keep the train hovering in a straight line, and not conform to the terrain's curves. You'll have to write your own piece of code to handle that.

Author:  Roast Veg [ Wed Sep 01, 2010 10:03 am ]
Post subject:  Re: Vehicle control problems

You were right. The level it was trying to remain constant to was a long way below terrain, so it just tore its way through it. I finally found a way to keep it hovering and the KeyPresses work just fine.

All is well.

Might release end product into minor mod dump.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/