Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Directional & Scene lights together?

Featured Replies

Is there a way to have both Scene lights and Directional lights on one vehicle? The problem with it is that both the buttons turn on/off any "special" lights on the vehicle, so is there a way to make it so they don't do this?

Is there a way to have both Scene lights and Directional lights on one vehicle? The problem with it is that both the buttons turn on/off any "special" lights on the vehicle, so is there a way to make it so they don't do this?

Thanks to the mod who moved this.

 

There isnt really a way to "subclass" special lights. My technique is to use special lights for the directional lights, and Trafficlight green for spotlights. I then modify the flood light script to recognize cars that have the double configuration and code the script to enable the green traffic lights of the vehicle.

  • Author

Thanks for the suggestion, I'll have to try that one.

Thanks for the suggestion, I'll have to try that one.

An example you could look into is the Border Patrol Dodge Charger from my LA Car pack. It has that set up, but only I have the script necessary to make it work.

  • Author

An example you could look into is the Border Patrol Dodge Charger from my LA Car pack. It has that set up, but only I have the script necessary to make it work.

I'll take a look. What is the class for the Green traffic light? I know that Special lights is "EnableSpecialLights" so my guess is that it is "EnableTrafficlightGreen" or something

I'll take a look. What is the class for the Green traffic light? I know that Special lights is "EnableSpecialLights" so my guess is that it is "EnableTrafficlightGreen" or something

void EnableTrafficLight(TrafficLightType type_);

 

TrafficLightType type_ can be the follwing and only the following:

TLT_NONE,

TLT_GREEN,

TLT_YELLOW,

TLT_RED

 

Use TLT_NONE to disable all lights. I think this is what works. Tbh, I only tested the script once and can't remember if it works or not.

  • Author

I'll give it a shot later then and say if it works :)

This is quite interesting because I have often wondered the same thing

So basically what I suggested might be worth trying... [emoji14]

I'm sure this has been done before, I just can remember where or who did it.

Sent from my SM-G901F using Tapatalk

So just: 

v.EnableTrafficLight(TLT_GREEN);

?

  • Author

So basically what I suggested might be worth trying... [emoji14]

I'm sure this has been done before, I just can remember where or who did it.

Sent from my SM-G901F using Tapatalk

 

Yeah pretty much :P I just have a poor memory

 

---------------------------------------------------------------------------------

 

It is v.EnableTrafficLight(TLT_GREEN); for true and v.EnableTrafficLight(TLT_NONE); for false, it works perfectly. I can now have separate directional and flood lights.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.