Game Development Community

Behavior Field Bugs

by Spider · in Torque Game Builder · 07/26/2007 (2:25 pm) · 1 replies

If you have a behavior '%beh' then
echo(%beh.getBehaviorFieldCount());
returns a giant garbage number.

If you then decide to go for broke and try
echo(%beh.getBehaviorField(0));
then Torque crashes.

#1
07/31/2007 (11:21 am)
I actually couldn't replicate this later...
I think that maybe what I thought was a behaviorTemplate was not. The 'dump' command is pretty hard to read these days!

What does still happen, though, is that if you try to getBehaviorField with an index that is too high, Torque crashes.