Home   Help Search Login Register  

Author Topic: Turn the lights on for pete's sake!  (Read 784 times)

0 Members and 1 Guest are viewing this topic.

MadFred

  • Guest
Turn the lights on for pete's sake!
« on: 01 Apr 2003, 05:44:59 »
Hello

I got a little problem with AI units turning on lights

here's the specs:

I have got a Mig29 (empty) parked on the runway at Malden airport.
I got a pilot standing next to it
The pilot first has a WP MOVE next to the plane, then a GETIN WP.
the GETIN waypoint is synchronized to a trigger which detects incoming enemy planes.
So when these planes arrive into the trigger the pilot gets in his Mig29 and takes off...engages the bandits, and returns home to land (if he is lucky).

Now all this is happening at night and the thing I cant get to work is to make the pilot turn on his lights when in the plane
I have tried to put the action into the Getin WP's activation box for both pilot and plane...so:

pilot action ["light on"]
Mig29 action ["light on"]

(not both at the same time though, I am just not sure which one has to do this)

All I get is a short flash with the lights and then they are off again
So I tried ["light auto"] to see if it would stay on when the auto mode detected nighttime, but it didnt (not even the short flash now)

I am probably overlooking something or maybe using the action thingie the wrong way!

Any thoughts on how to make it work would be greatly appreciated!

Thanks in advance

MadFred

Offline OFPWiZard

  • Members
  • *
Re:Turn the lights on for pete's sake!
« Reply #1 on: 01 Apr 2003, 06:07:54 »
It should be: unitname action ["LIGHT ON"]  i just tryed it and it worked.

MadFred

  • Guest
Re:Turn the lights on for pete's sake!
« Reply #2 on: 01 Apr 2003, 07:00:09 »
Thanks for the effort!

But then it raises another question:

As the pilot and the Mig29 are two seperate units which are combined after the trigger is activated,

which one is then username?

I have tried too first pilot action ["LIGHT ON"]

and then MIG29 action ["LIGHT ON"]

but it just flashes once and then dies....

and did you put it in the Avtivation field for the GETIN waypoint?

thanks....

Offline OFPWiZard

  • Members
  • *
Re:Turn the lights on for pete's sake!
« Reply #3 on: 01 Apr 2003, 08:04:23 »
Hello

Here is an example:
A guy (s1) runs to a jeep (v1) and gets in.  Then he turns on his lights.
In the On Activation Field of that waypoint put this:  s1 action ["LIGHT ON"]

Here is another:
You start off in a vehical (v1).
In the On Activation Field of the vechical put this:
v1 action ["LIGHT ON"]

Hope this helps
Bye

Flapje

  • Guest
Re:Turn the lights on for pete's sake!
« Reply #4 on: 01 Apr 2003, 16:46:15 »
I picked up somewhere that a vehicle will have it's lights on when it's "safe" or "careless"

MadFred

  • Guest
Re:Turn the lights on for pete's sake!
« Reply #5 on: 01 Apr 2003, 21:57:54 »
OFPWizard,

I did exactly the same thing as your example:

a pilot (airman) runs to an A10 (warthog) and gets in.
In the WP activation line -> airman action ["LIGHT ON"]

you can see for yourself what happens, example below:

Kaliyuga

  • Guest
Re:Turn the lights on for pete's sake!
« Reply #6 on: 01 Apr 2003, 22:06:53 »
      hehe..... did you try taking away the pilot's Night Vision goggles? ;)
  that might help you out with this problem

just a thought...     but he don't need the lights on if he has NV ;D


Offline OFPWiZard

  • Members
  • *
Re:Turn the lights on for pete's sake!
« Reply #7 on: 01 Apr 2003, 22:32:13 »
I don't know way it doesn't work...
the command line is right because i switched the A10 to a jeep and it worked

I can do some things to figure out the way to turn on the light for a aircraft.
Bye for now

MadFred

  • Guest
Re:Turn the lights on for pete's sake!
« Reply #8 on: 01 Apr 2003, 23:10:59 »
Kaliyuga, I tried it with removed NVG but it does not help

he would indeed not need the lights when he has NVG but I think he would turn on lights anyway when properly motivated (the right command)

Thanks for that thought though!!

What DOES work is Flapje's remark!
I have put it on safe mode and indeed that turns on the lights! just not sure what happens when he gets into combat..he may turn em off again...anyway when I put "safe" for the landing waypoint it does land with the lights on....and as it is only in view of the player when taking off and landing (the airfield is attacked), it completely solves my problem.

Guys thanks for the help!!!!

MadFred