Team Spartan Cookies & Milk Forums
Starfall Emitter - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Starfall Emitter (/thread-2731.html)



Starfall Emitter - 4N0NYM - 29-06-2018

Is it possible that the emitter dont get drawed when its in a diffrent Galaxy or even outside of a planet ?
I know i can code it with some Envoirment checks, but its would be alot easier to do when its already from the server.


RE: Starfall Emitter - Red The Blue Color - 30-06-2018

If some sort of thing like this is implemented would appreciate if it was more of a environment check not a range limit itself on where the emitter can draw. Also putting an environment check in your code is really simple, curious if there is any specific reason why you can't just do that?


RE: Starfall Emitter - Person8880 - 30-06-2018

The main reason for this is to allow for emitters that may want to emit to arbitrary locations (e.g. some people have made Stargate iris warnings).

I've added a new library/function to be able to control this behaviour:
-- Sets the emitter to not draw when in an unloaded region or culled.
emitter.setDrawEverywhere( false )
The default behaviour remains the same (i.e. drawing everywhere is enabled).