Simplest object that has a position and datablock?
by Daniel Buckmaster · in Torque Game Engine · 10/25/2007 (12:22 pm) · 2 replies
I'm trying to create 'squad manager' objects that hang around the squad they're assigned to and handle stuff like assigning targets, squad chatter, detecting enemies, and so on. I want to use a really simple object for this, either because most of the work is done with scripts or because I'll be extending the code to do what I need. Haven't decided yet.
But basically, I want to know, what's the simplest type of object that has a presence in the game world (i.e., one of those red dots and a number in the world editor) and can do stuff like .setPosition? Plus, I'd really, really like it to use a datablock...
I know, I'm probably going to end up coding the thing myself. But in the name of prototyping...
But basically, I want to know, what's the simplest type of object that has a presence in the game world (i.e., one of those red dots and a number in the world editor) and can do stuff like .setPosition? Plus, I'd really, really like it to use a datablock...
I know, I'm probably going to end up coding the thing myself. But in the name of prototyping...
About the author
Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!
#2
EDIT: Yep, it works! Thanks! I'll just need to look at modifying the source to display a little red dot and number where the object is. Unless I can do that via script. Meh. Thanks again.
10/27/2007 (1:24 am)
Though is it actually possible to add GameBase objects to the world? Cool. Thanks for the tip!EDIT: Yep, it works! Thanks! I'll just need to look at modifying the source to display a little red dot and number where the object is. Unless I can do that via script. Meh. Thanks again.
Torque Owner Michael Bacon
Default Studio Name