Segwin 0 Posted July 15, 2009 I'm just starting to try and get a grasp on the mission editor so bear with me. Just want a car to have its headlights on sitting in a field. Side: Empty Class: Cars Unit: HMMWV Control: Non-Playable Special: None Name: HMMWV Vehicle Lock: Unlocked Init String: HMMWV action["LightOn", HMMWV] On preview it doesn't work. Help~ Share this post Link to post Share on other sites
Planck 1 Posted July 15, 2009 Place a game logic with 'this moveindriver carname' in its init field. If it is lighting up time it will turn on the lights. Planck Share this post Link to post Share on other sites
5133p39 16 Posted July 16, 2009 Just a small clarification: 1. You don't need a new gamelogic, ANY alive unit will do. 2. The unit doesn't need to be a driver, nor it doesn't need to be anywhere near the vehicle. Lets say you have a player unit, some soldier named 'Bob', and HMMWV named 'ThatCar'. Then you can use player Action ["lightOn", ThatCar], or you can use Bob Action ["lightOn", ThatCar]. Few things i am not sure about: 1. If there would be a driver in the car, who is in Stealth behaviour, then maybe he would switch OFF the lights as soon as you switch them ON. 2. If the vehicle is occupied by a BLUFOR units, and you try to use a OPFOR unit to switch the lights, then i am not sure if that would work (i didn not tested that). Share this post Link to post Share on other sites