Game Development Community

Behavior field that's a pointer?

by Drethon · in Torque Game Builder · 06/03/2009 (3:26 pm) · 1 replies

I want to create a status bar behavior, Is there any way I can pass a pointer to a variable as a behavior field and this variable is used to update the status bar?

#1
06/03/2009 (5:11 pm)
You cannot use a pointer, but you can use the SimObjectID to identify the object:

// Returns S32 (int)
myObject->getID();

// Returns char
myObject->getIDString();