double post! w00 h00.
function Volumes::Load()
{
newObject("RPGVol1", SimVolume, "tRPGVols\\tRPGVol1.vol");
newObject("RPGVol2", SimVolume, "tRPGVols\\tRPGVol2.vol");
newObject("RPGVol3", SimVolume, "tRPGVols\\tRPGVol3.vol");
}
Event::Attach(eventConnected,"schedule(\"Volumes::Load();\",1);");
function Volumes::Unload()
{
flushTextureCache();
if(isObject("RPGVol1")) deleteObject("RPGVol1");
if(isObject("RPGVol2")) deleteObject("RPGVol2");
if(isObject("RPGVol3")) deleteObject("RPGVol3");
deleteObject("EntitiesVolume");
newObject("EntitiesVolume", SimVolume, "Entities.vol");
}
Event::Attach(eventConnectionAccepted, Volumes::Unload);
granted that version runs off of presto, you can make it into some more advanced forms to do some really unique malarkey.