• Burn in the sun
    6 replies, posted
How can I implement a system of ignition of zombies in the sun without using Trigger boxes?
A traceline to the sky and check .HitSky
I don't know if this would work or not, but maybe one these functions could also help? Like triggering ignite on the NPC above a certain light value. Might help with accuracy so just being able to see the sky won't set them on fire when they're actually in the shadow of a building or something. render.GetAmbientLightColor render.GetLightColor
This can be affected by indoor light iirc
True, maybe both that and a trace could be used at the same time to prevent that? Though I imagine it getting laggy if there's enough zombies spawned. This seems more complicated than it really needs to be, but I guess that's coding in a nutshell.
Ha-ha. by the way. These are clientside functions : D
I I didn't even notice. I didn't read the whole page. God Damn it Ignore me, I'm retarded.
Sorry, you need to Log In to post a reply to this thread.