TACRfan Posted April 28, 2016 Report Share Posted April 28, 2016 How would I make a child of a light appear on the roof of a vehicle only when blue lights have been activated Quote Link to comment Share on other sites More sharing options...
BritishArmyReserveCadets Posted May 4, 2016 Report Share Posted May 4, 2016 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) Quote Link to comment Share on other sites More sharing options...
Pottyscotty Posted May 4, 2016 Report Share Posted May 4, 2016 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. Quote Link to comment Share on other sites More sharing options...
TACRfan Posted May 4, 2016 Author Report Share Posted May 4, 2016 Ill give it a go, im pretty dumb when it comes to scripting though Quote Link to comment Share on other sites More sharing options...
itchboy Posted May 5, 2016 Report Share Posted May 5, 2016 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. Quote Link to comment Share on other sites More sharing options...
TACRfan Posted May 6, 2016 Author Report Share Posted May 6, 2016 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 Quote Link to comment Share on other sites More sharing options...