Jump to content
Sign in to follow this  
Segwin

LightOn Command

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×