Game Development Community

Get object ID from name

by Howard Dortch · in Torque Game Engine · 09/24/2005 (6:41 am) · 4 replies

What is the function call to get the object ID from the object name?

#1
09/24/2005 (7:06 am)
It's
nameToId(objectName);
#2
09/24/2005 (7:13 am)
Thanks Jacob.
#3
09/24/2005 (9:14 am)
For people that may read this thread afterwards, that's the TorqueScript method...it's done differently in the C++ side of things.
#4
09/24/2005 (11:14 am)
There's a getId() method on the C++ side. :)