Blabla456789 Posted January 20, 2021 Share Posted January 20, 2021 I'm trying to work on a script in C# changing interior lights, I'm trying to make that if a key is pressed, all the interior lights of Fraklin house switch to off, is that possibile? Just like if you use SET_ARTIFICIAL_LIGHTS_STATE but only for this savehouse. Thanks in advice! Link to comment Share on other sites More sharing options...
LeeC22 Posted January 20, 2021 Share Posted January 20, 2021 14 minutes ago, Blabla456789 said: I'm trying to work on a script in C# changing interior lights, I'm trying to make that if a key is pressed, all the interior lights of Fraklin house switch to off, is that possibile? Just like if you use SET_ARTIFICIAL_LIGHTS_STATE but only for this savehouse. Thanks in advice! This seems like it would work on any objects that were lit but I don't know how much artificial light is built into the interior. SET_ENTITY_LIGHTS(Entity entity, BOOL toggle) You could try a small test mod that got all the props when you were in that area and set their light states to false, see what effect it has. I think the texture based lighting, like windows, will be a global thing for the whole map. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now