OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NAA_Anton on 21 Oct 2002, 01:34:26

Title: AI gunner turns on light, then no light??
Post by: NAA_Anton on 21 Oct 2002, 01:34:26
Hi!

I'm making a mission (obviously), and it involves having AI pilots board an MI24, for support reasons,  and then move to assigned waypoint, then seek and destroy the player. Here's how it's set up:

1. Trigger sets whole thing in motion.
2. First of 2 AI pilots gets into helo.
2a. In the waypoint, i've put: mi01 action ["LIGHTON"]
3. Helo starts engine and then light goes off.
4. Helo flies to waypoint perfectly.

My question is, how can it be set up so that the lights don't turn off? The mission I'm making is driving me nuts! I need some relief, cuz I just can't think anymore.

Any help would be appreciated....
Anton
Title: Re:AI gunner turns on light, then no light??
Post by: Sui on 21 Oct 2002, 03:07:14
A more reliable way to muck around with the lights on a vehicle is by using the vehicles combatmode.

If your combatmode is set to:The unit will turn off it's lights. If it is set to safe or careless, it will keep them on.

However, one to thing to be aware of is that if you set your combatmode to safe, as soon as your unit detects an enemy it will change it's combat mode to aware (and turn it's lights off).

So a solution to your problem, I suggest you set it's combatmode to careless ;) It will still engage enemy units, but it will keep it's lights on
Title: Re:AI gunner turns on light, then no light??
Post by: NAA_Anton on 21 Oct 2002, 05:56:29
 :-* I could kiss you.

It worked, and I can't believe I didn't think of it...Awesome! You rule man! Whoooo!

Anton