Author Topic: How do I modify the environment?  (Read 1193 times)

In mission editor you can edit the properties of the precipitation

you can edit the numdrops variable in the Rain object

the problem is, when I type
Code: [Select]
Rain.numdrops = 8000;in the console, nothing happens

I've tried running a trace on the function for the apply button but nothing shows up.
I've even tried going into the Client_MissionEditor folder and checking all the source files for the function that applies the changes

I can't seem to find anything on it
Anyone know how you apply these changes?

If I am correct there's an update function you use after changing variables in objects like those, may be wrong though.
Else try to create the object with that variable already set.

Rain.inspectPostApply();

Rain.inspectPostApply();
That will crash a dedicated server. I solved the problem by deleting rain and creating a new one when I used it

That will crash a dedicated server. I solved the problem by deleting rain and creating a new one when I used it
Any idea why it does this?

Any idea why it does this?
Nope. Probably because the editor isn't loaded?

Does rain have a .sendUpdate() function?