Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Light child activated when blue lights are on

Featured Replies

How would I make a child of a light appear on the roof of a vehicle only when blue lights have been activated

I think...

 

Add the child and name it, and then in the command file for the flashing lights make it so that if bluelights activated = yes, then the child is shown. (I would be more specific, but I dont have the resources on me to look it up)

When turning the light on you'd need something like 'v.SetChildEnabled("MagneticLight", true);' and turning off ''v.SetChildEnabled("MagneticLight", false);'

If you can't work it out I can give it a try and see if it works.

  • Author

Ill give it a go, im pretty dumb when it comes to scripting though

http://pastebin.com/qJ4UZiD5

Something like this would have to be utilized in conjunction with the EnableBlueLights code to get desired function.

The problem is, Em4 has a keyboard shortcut for disabling lights. It is Shift+B on the keyboard. When you press this keyboard shortcut, the childObject will not be hidden or shown because the lights script wont be called.

  • Author
2 hours ago, itchboy said:

http://pastebin.com/qJ4UZiD5

Something like this would have to be utilized in conjunction with the EnableBlueLights code to get desired function.

The problem is, Em4 has a keyboard shortcut for disabling lights. It is Shift+B on the keyboard. When you press this keyboard shortcut, the childObject will not be hidden or shown because the lights script wont be called.

Thank you

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.