3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Quick Question  (Read 186 times)

« on: December 04, 2013, 11:02:32 AM »
anyone know how to tell what TYPE of object is referenced in the object handle list of a script object...   is it a skinmesh, or a rigidbody, etc...

thx in advance


--Mike
« Reply #1 on: December 04, 2013, 12:40:01 PM »
I don't think that's possible. I've never come across anything like it.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #2 on: December 04, 2013, 01:07:46 PM »
Quote
I don't think that's possible. I've never come across anything like it.
i think you're right Rob...


but,  just as i was reading your reply, it dawned on me what an idiot i am...
a perfect case of brain wide shut while eyes wide open  :o  ;D  ;D

the solution is so obvious it's almost invisible... all i have to do is to place different types of objects at various elevations in the scene initially, and upon creation the logic check the elevation and groups each  accordingly...


what i'm doing here is making it so that a single class script can be easily used to create objects by simply allowing the user to enable the functionality by linking the required objects to the script...
no coding or script manipulation required...

classes are good for implementing many objects that do pretty much the same thing... for example, a single or group of enemy soldiers...  all the user need do is supply the required meshes and rigidbodies... link em to the class script,  and they're off and running...

the ai car topic that Sondre brought up got me thinking about this...

testing the concept now...

--Mike
« Last Edit: December 04, 2013, 01:19:28 PM by Mike Hense »
Pages: [1]