I'm trying to edit walktut to make the monkey respawn every couple of seconds. The following code was added to the LoadLevel() function in app.cpp and causes a segfault at the moment the spawn occurs.
csRef<iPcSpawn> pcspawn = CEL_QUERY_PROPCLASS_ENT(level_entity, iPcSpawn);
pcspawn->AddEntityType(0.1,"badone",bl,"badone_behave",0,0);
csVector3 spawnpos(9,3,8);
pcspawn->AddSpawnPosition(spawnpos, 0.0, "Scene");
pcspawn->SetTiming(true, true, 10000, 20000);
I usually like to figure stuff like this out on my own, but it has been a couple of days and I still can't see anything wrong. (should probably mention that although my c++ "skills" are slightly average, I still don't understand most of the crystal space and cel concepts)
Any help would be greatly appreciated
thanks
george