Game Development Community

Marker Object Type??

by Donnie Hutson Jr · in Torque 3D Professional · 03/12/2014 (4:59 pm) · 5 replies

Is it possible to get the name or handle of a marker in script???

About the author

Electrical Engineer by trade, Computer geek by night. Still learning and loving every minute.


#1
03/12/2014 (5:08 pm)
- Assign it a name when creating it in the level editor, then just reference it by name in script.

- For an object type, there should be a bitflag for it defined somewhere in engine, check if there's a $TypeMasks::MarkerObjectType variable in script. Try echo'ing that. Then, you could also check an object's typemask for that too.
#2
03/12/2014 (5:22 pm)
ok, thank you ill try that...
#3
03/13/2014 (6:28 am)
And any object that has a name will tell you what it is using %theObject.getName(), and its simID using %theObject.getId().
#4
03/13/2014 (6:53 am)
thank you richard....
#5
04/22/2014 (10:58 pm)
Then, you could also check an object's typemask for that too.

Click Here To Download Game
www.icore3games.com