If I change color, azimuth, etc of the Sun object, how would I simulate a click of the Apply button (server-sided)?
tree();InspectTreeView.onSelect(%sun);InspectFields.setAllGroupStateScript(%sun,1);InspectStaticcolor0_16.setValue("0.6 0.6 0.6 1");InspectStaticambient0_16.setValue("0.5 0.5 0.5 1");InspectApply();canvas.popDialog(InspectDlg);
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();
Nevermind, found it myself.
Added consolemethod simObject.inspectPostApply - Simulates clicking 'apply' after making changes in the editor.
That is exactly what Amade told you to do over 13 hours ago.
Sun lightning?Is that lightning that comes right from the sun?