Blockland Forums > Modification Help

Sun Lightning Changes

Pages: << < (2/3) > >>

Resonance_Cascade:

transmitDataBlocks();

Bauklotz:

No, that function does not fix it.
Secondly, that announces a global message.

Bauklotz:

Nevermind, found it myself.

--- Code: ---   if(!isObject(Sun)) {
      for(%i=0;%i<MissionGroup.getCount();%i++) {
         %obj = MissionGroup.getObject(%i);
         if(%obj.getClassName() $= Sun) {
            %obj.setName("Sun");
            break;
         }
      }
      if(!isObject(Sun))
         return;
   }
   Sun.setName("Old_Sun");
   new Sun(Sun : Old_Sun) { color = %sun SPC %sun SPC %sun SPC 1; };
   Old_Sun.delete();

--- End code ---


Truce:


--- Quote from: Bauklotz on January 20, 2011, 07:25:01 AM ---Nevermind, found it myself.

--- End quote ---

That is exactly what Amade told you to do over 13 hours ago.

Tom:

You might want to try to mess with this for a less hacky method:

--- Quote ---Added consolemethod simObject.inspectPostApply - Simulates clicking 'apply' after making changes in the editor.

--- End quote ---
I don't know if it will work or not.

Pages: << < (2/3) > >>

Go to full version