Game Development Community

Function callbacks in torque

by Roshan Kuriyan · in Technical Issues · 04/10/2006 (4:29 am) · 1 replies

Hi torque game developers.

in torque rw/fps demo i see lot of functions starting with "on***"examples like
onexit(),oncollision(),ontrigger().what r these functions for . is it function callback . pls explain the basics of function cal backs and its use in scripts.

thanks in advance!

#1
04/17/2006 (6:16 pm)
They are callback from the engine to the script when events happen, ie when a player enters a trigger, onentertrigger is called.