Game Development Community

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:
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?
Page«First 1 2 Next»
#21
08/25/2010 (7:48 pm)
@Kevin, not to hijack Arden's thread or anything, but where are you stationed? Or better yet, are you still in the Airforce? I'm in the Navy myself. It's cool to see another military member on the forums here.
#22
08/25/2010 (10:46 pm)
Air force academy, colorado. I just started my 2nd year.
#23
08/26/2010 (1:46 am)
@Kevin, Jeramy,

I appreciate your guys service.
#24
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.
Page«First 1 2 Next»