Game Development Community

about behaviors

by Byron Qian · in Torque Game Builder · 02/15/2010 (5:45 am) · 4 replies

Does anyone know where the functions are called from in the behaviors?
Such as where the "onBehaviorAdd" method are called from.

#1
02/15/2010 (6:07 am)
Virtually all of them are called from the engine. For example, onBehaviorAdd is called from source/component/behaviors/behaviorComponenet.cpp. It's near the top in the function BehaviorComponent::addBehavior.
#2
02/15/2010 (8:51 am)
Thanks a lot. :)
#3
02/15/2010 (9:17 am)
You can also look here to find the other behavior callbacks:
TDN Behaviors page
#4
02/15/2010 (10:21 am)
Thanks a lot. :)