Jump to content
Pottyscotty

Directional & Scene lights together?

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...