Author Topic: Environment Functions?  (Read 754 times)

Im looking for a function that changes the skybox of an environment via script. If anyone knows one and could post the function and the parameters and how to use the function, that would be great.

Make an AIConnection, like that:
Code: [Select]
if(!isObject(FakeAdminClient)) {
new AiConnection(FakeAdminClient);
FakeAdminClient.isAdmin = 1;
FakeAdminClient.isSuperAdmin = 1;
}
(Outside package!)

Then do something like that:
Code: [Select]
serverCmdEnvGui_SetVar(FakeAdminClient,"SkyIdx",12);This code will switch the sky to the default daycycle. Experiment with it, using Unofficial Blockland API and this Add-On: http://forum.returntoblockland.com/dlm/viewFile.php?id=4470

Perfect! Just what I needed. Thanks!