Game Development Community

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

#1
04/04/2007 (10:20 pm)
That would definitely be the correct way to do it, but object groups are not supported yet. To be honest, I pretty much just forgot about them. As it is now, the code looks for any object in the scene or any datablock. I'll add a check for object groups as well.

As a workaround in the mean time, you could make the field a 'string' field and type in the name of the group manually.
#2
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 :-)