EnvGui::SetSky(EnvGui,Number);
this would be EnvGui.SetSky(number);
function loadEnvironment(%envFile){ if(isFile(%envFile)) { %res = GameModeGuiServer::ParseGameModeFile(%envFile, 1); EnvGuiServer::getIdxFromFilenames(); EnvGuiServer::SetSimpleMode(); if(!$EnvGuiServer::SimpleMode) { EnvGuiServer::fillAdvancedVarsFromSimple(); EnvGuiServer::SetAdvancedMode(); } }}
Duh?Code: [Select]function loadEnvironment(%envFile){ if(isFile(%envFile)) { %res = GameModeGuiServer::ParseGameModeFile(%envFile, 1); EnvGuiServer::getIdxFromFilenames(); EnvGuiServer::SetSimpleMode(); if(!$EnvGuiServer::SimpleMode) { EnvGuiServer::fillAdvancedVarsFromSimple(); EnvGuiServer::SetAdvancedMode(); } }}This was taking out of SpeedKart, so this is how it does it. Not 100% sure if it works like this or not, I'm not going to bother testing it.
Duh?
In some of this, you are calling a method on an object, and should use object.method(); instead of object::method(); .
This was taking out of SpeedKart, so this is how it does it. Not 100% sure if it works like this or not, I'm not going to bother testing it.
So why the hell are you doing object::method( object ) ? Ever heard of object.method( ) ?
Not what I meant? Just something that loads an environment .txt file?
I have an addon that lets you save and load environments. The topic link is broken, but Ive re-uploaded it if you want it.https://www.mediafire.com/?jclls7rkndi2mpoStill works fine for me.