Game Development Community

When does the oninventry function will got invoked

by Roshan Kuriyan · in Torque Game Engine · 04/06/2006 (4:44 am) · 2 replies

I am loading a mission, i want to know when the OnInventory function got invoked,

#1
04/06/2006 (6:32 am)
Your best bet for tracking things like this down is to grab an editor that supports "find in files" such as Torsion.

Do a find in files on "OnInventory". You'll then be able to see which functions invoke OnInventory(), from here you can trace backwards further by repeating the above for each of the functions you're interested in.
#2
04/07/2006 (8:29 pm)
Set "trace( true );" somewhere convenient, like main.cs. Then you can go back to the console.log file and see where things are getting called.