Jump to content
TACRfan

Light child activated when blue lights are on

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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