Scripts / Question for AmenMoses

Author
Message
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2018 19:23
AmenMoses :
Now that we have this emissive_texture lights from GraPhiX and Bods models , it looks very nice.
Question? would it be possible to use a lua script to toggle on or off these textures so that it can looks like it would switch on when lets say it becomes dark in the map.
would it be possible?
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Attachments

Login to view attachments
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 7th Apr 2018 22:14 Edited at: 7th Apr 2018 22:15
Hi PCS

Amenmoses is on holiday

this would not be possible with the textures because the .dbo file is not dynamic i.e once its created it does not change unless you delete it, the only viable way would be to have two models and switch them out with a Lua script you could tie it in with the day / night script so model 1 without emissive is the day model and model 2 with emissive is the night model.
I think amen as a 'asset' swap script somewhere I'm sure he has
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2018 22:18
hi GraPhiX. that would be cool if we could swap it like that.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 7th Apr 2018 22:29
I will have a play with my street lights and see if I can get it to work I will keep you posted
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2018 23:19
Thank you, i am sure you will come up with something.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 8th Apr 2018 14:30
Hi Bod that's not a bad idea I was also thinking the street lamps have a glass cowling I could turn off transparency in the fpe for day and on for night just trying to work out how to change the transparency in lua LOL can you even set any fpe settings with lua ?
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 8th Apr 2018 20:58
I'm back!

The gun turrets thread should have an example of switching out one model for another, that's how I did the 'damage' turret effect.

It's pretty easy to do as one model is hidden by default and the other visible, then just flip them on some trigger.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-12-22 19:55:31
Your offset time is: 2024-12-22 19:55:31