Check existence of behavior
by Kevin James · in Torque Game Builder · 05/12/2010 (12:11 pm) · 3 replies
I did search for this but came up empty. How do I check in code if a behavior exists?
%object.addBehavior(GenericButtonBehavior.createInstance()); ... if (%Object.Behavior[0]) ?
About the author
Hobbyist game developer -- free and open source games FTW.
Torque Owner Kevin James
if (%object.getBehaviorCount()){