ElTacoBanido Posted July 20, 2019 Share Posted July 20, 2019 (edited) So, i want to make an object material have light, In my case i want to make a the police siren better. a good example is a car front light iam not talking about coronas! this is a corona : Spoiler Edited July 20, 2019 by ElTacoBanido Link to comment
Administrators Tut Posted July 20, 2019 Administrators Share Posted July 20, 2019 I believe this is the right section, https://forum.multitheftauto.com/forum/177-modelling/ it may also be worth checking this FAQ @ElTacoBanido Link to comment
ElTacoBanido Posted July 20, 2019 Author Share Posted July 20, 2019 (edited) Still scripting as it will be for a siren. Just now, Tut said: I believe this is the right section, https://forum.multitheftauto.com/forum/177-modelling/ it may also be worth checking this FAQ @ElTacoBanido Still scripting as it will be for a siren, Turning on and off, Idk its possible without scripting @Tut As you can see, my siren material alredy has light, now the ideia is that, when i turn the siren on it would be animated. Edited July 20, 2019 by ElTacoBanido 1 Link to comment
Administrators Tut Posted July 20, 2019 Administrators Share Posted July 20, 2019 5 minutes ago, ElTacoBanido said: Still scripting as it will be for a siren. Still scripting as it will be for a siren, Turning on and off, Idk its possible without scripting ah. I don't script but I'm aware that texture shaders will work. you'll likely still have to make adjustments to the model for it to work in regards to the UV. shaders would add a dark lights texture when off and an illuminated texture when on, just like in vanilla vehicle lights. these shaders can be controlled with a script for the lights to animate through a cycle. of which I have no idea how to create. you can use a simple lights flashing script for simple lights, but as soon as you want to control each of the light's state separate from headlights, you'll have plenty scripting to do. hope this helps. I like to fiddle with lights myself. have fun! Link to comment
ElTacoBanido Posted July 20, 2019 Author Share Posted July 20, 2019 2 hours ago, Tut said: ah. I don't script but I'm aware that texture shaders will work. you'll likely still have to make adjustments to the model for it to work in regards to the UV. shaders would add a dark lights texture when off and an illuminated texture when on, just like in vanilla vehicle lights. these shaders can be controlled with a script for the lights to animate through a cycle. of which I have no idea how to create. you can use a simple lights flashing script for simple lights, but as soon as you want to control each of the light's state separate from headlights, you'll have plenty scripting to do. hope this helps. I like to fiddle with lights myself. have fun! Then get me back to scripting. Link to comment
JustinMTA Posted July 21, 2019 Share Posted July 21, 2019 (edited) I don't think it's possible without scripting but I could be wrong. You need 2 copies of the siren component, then you need a timer to show/hide the siren components accordingly. One of the tail light components will need "Vortex prelighting" adjustments to make the material avoid getting darker with night time, Images for the tutorial are broken but you can still follow it like I did. Good luck and if you need help contact me ;D Edited July 21, 2019 by JustinMTA Link to comment
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