Question about ObjectType
by Rich Hudson · in Torque X 2D · 09/29/2007 (11:43 am) · 1 replies
I have created several ObjectTypes in the editor (enemy, character, object, effect, etc..) and added some of these object types to my templates (monster tempate = enemy). However when I clone a template in game and access its objecttype it always reads "unknown". Am I missing something? If this is a bug, this would be a huge functionality loss...
RH
RH
Torque Owner Rich Hudson
TorqueObjectType Enemy = TorqueObjectDatabase.Instance.GetObjectType("enemy");
if (croc.TestObjectType(Enemy))
{
}