More questions about behavior
by Playware · in Torque Game Builder · 04/04/2007 (7:12 pm) · 2 replies
Hi,
i wanted to do a behavior that can affect a group of objects, so i do this:
%template.addBehaviorField(grp, "Object Group", Object, "", t2dSceneObjectGroup);
but nothing comes out in the dropout box. Does the "Object" datafield support object group currently? Or the way i did it is wrong?
thanks
i wanted to do a behavior that can affect a group of objects, so i do this:
%template.addBehaviorField(grp, "Object Group", Object, "", t2dSceneObjectGroup);
but nothing comes out in the dropout box. Does the "Object" datafield support object group currently? Or the way i did it is wrong?
thanks
About the author
#2
the workaround sounds fine too. anyway it would be helpful if object groups can be added as well :-)
04/04/2007 (10:35 pm)
Ok thanks. the workaround sounds fine too. anyway it would be helpful if object groups can be added as well :-)
Torque Owner Adam Larson
As a workaround in the mean time, you could make the field a 'string' field and type in the name of the group manually.