Turrets let's get them in the game
by Anthony Rosenbaum · in Torque Game Engine · 10/25/2002 (7:21 pm) · 3 replies
Hello all, well I am at the point where turrets are the last major element I need to impliment to get my basic gameplay working. I have used BadGuy's example from a 1/2 a year ago, and well when I added the object it crashes out saying the unpack function was wrong. I noticed Sam Guffey must of had some similar problems, cause he kept asking about these functions, I found a decent explaination here but am having some question on what is needed to move this resourcee farther, does anyone have any suggestions?
About the author
#2
10/25/2002 (7:46 pm)
My goal is to replicate the turret class that T2 had, which was both AI, and player controled. It should be capable of being mounted on vehicles, and stand alone either deployed or as a stationary turret. I figure Legends will be using something similar. I hope we can get something made soon.
#3
10/25/2002 (8:46 pm)
So far I can add and object thru the editor, then mount the turrent with the onCollision call. It is basically a hack of the vehicle code, all I can do right now is Mount and unmount, but no crash.
Torque 3D Owner Robert Blanchet Jr.
After reading that thread you mention I've noticed that they solved, at least I think, the unpack problem by changing one of the function calls. This may have been broken not so long ago when Mark F updated the networking code for better object ghosting functionality.
Depending on what you're looking for with the turrets, ie AI controlled, player controlled, or maybe even a combination of the two can change how you will want the turret to send information.
What I think would be best here is to strip down the code that we do have, to at least get the object showing up in the game, placeable in the editor and really basic network capability. Then from there I would move to the mechanisms which will control how it moves(pivots) and the various problems rendering transitions of the object will cause, how it will aim, and so forth.
The first part should be rather easy.
I know that for the group I'm working with, getting turrets will be an essential part of the gameplay, as you state. When I start work on this I'll try and keep in touch with the rest of the community here about the various problems that I encountered to get it to work.