onLevelLoaded not being called
by Arden · in Torque Game Builder · 08/24/2010 (9:21 pm) · 24 replies
Hiya all,
I have two functions in separate CS files:
Archer_Tower.cs:
I have two functions in separate CS files:
Archer_Tower.cs:
function A::onLevelLoaded(%this, %scenegraph)
{
echo("A::onLevelLoaded called");
}Zombie_Spawner.cd:function B::onLevelLoaded(%this, %scenegraph)
{
echo("B::onLevelLoaded called");
}When I run the game, I only get an echo statement for function B. Both cs files are exectuted in the game.cs here, prior to loading the level:exec("./Archer_Tower.cs");
exec("./Zombiespawner.cs");Any ideas on what I might be doing wrong?
#22
08/25/2010 (10:46 pm)
Air force academy, colorado. I just started my 2nd year.
#24
@Kevin Oh no, not an academy guy! No offense, but Academy officers are the worst. Atleast in the Navy they are. They get this false idea of what it means to be an officer and what the Navy is really about. They treat the enlisted like crap, and expect to get a respect that they really don't deserve. Please don't be one of those guys when you graduate.
08/27/2010 (1:34 am)
@Patrick it's no problem man. It's basically just a job.@Kevin Oh no, not an academy guy! No offense, but Academy officers are the worst. Atleast in the Navy they are. They get this false idea of what it means to be an officer and what the Navy is really about. They treat the enlisted like crap, and expect to get a respect that they really don't deserve. Please don't be one of those guys when you graduate.
Torque 3D Owner Jeramy79