Home   Help Search Login Register  

Author Topic: Turn lights off  (Read 1145 times)

0 Members and 2 Guests are viewing this topic.

GCGoquingco

  • Guest
Turn lights off
« on: 26 May 2003, 15:48:20 »
Hey guys, this is the thing that ive had a problem with since a long time... How do you turn off the lights of an M2 gunner in the night?
Ive searched the forums for answers and i tried em and it STILL doesnt work... :-[

Im really desperate for a correct answer and if anyone could PLEASE help me, i would really be very happy..  :-\

Iwesshome

  • Guest
Re:Turn lights off
« Reply #1 on: 26 May 2003, 16:01:49 »
unitname action ["LIGHTON"]

unitname action ["LIGHTOFF"]

I would head over to the Editors Depot and grab the Official and Unofficial command ref. plus the switchmove/playmove lists.

These lists will help you out perfectly.

Plus I think depending your vehicles status will help depend if the light is on or off automatically... such as "careless" = light on, and "combat" = light off

IW

deaddog

  • Guest
Re:Turn lights off
« Reply #2 on: 26 May 2003, 16:03:19 »
I don't think this is possible, unfortunately.  This is one thing that really gets to me, too.

I hope someone can prove me wrong on this.  :P

@IW

I've tried that action command and could never get it to work with any unit.  Haven't tried the behaviour mode, though.
« Last Edit: 26 May 2003, 16:06:02 by deaddog »

Iwesshome

  • Guest
Re:Turn lights off
« Reply #3 on: 26 May 2003, 16:15:11 »
Deaddog,

I just went and tried it after your post... (didn't read the M2 part)

unitname action ["LIGHTON"]

unitname action ["LIGHTOFF"]

I would head over to the Editors Depot and grab the Official and Unofficial command ref. plus the switchmove/playmove lists.

These lists will help you out perfectly.

Plus I think depending your vehicles status will help depend if the light is on or off automatically... such as "careless" = light on, and "combat" = light off


I cant get it to work either.... wonder why the M2 would be so difficult.

IW

JDSH

  • Guest
Re:Turn lights off
« Reply #4 on: 28 May 2003, 04:45:16 »
I FOUND A WAY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  ;D ;D

 Make a script called   anything.sqs
-
In the init field type
                          [this] exec "anything.sqs"
------------------------------------------------
#A
_this select 0 action ["Light Off"]
goto "A"
--------------------------------------------------
Simple Huh
I just found this out ;D ;D ;D

    The reason for this is that the action ["Light Off"] command does work! BUT it only turns off for a very split
sec I found this out by using this tool DL from this sight on the bottom of the screen that allows you to type script in the game and execute it LIVE ITS CALLED
                                             (((console1.21.zip))))

http://home.arcor.de/vektorboson/downloads/console1.21BETA.zip
                                    by
Console for OFP by Vektorboson <vektorboson@gmx.de>
for updates see http://home.arcor.de/vektorboson ;D ;D
« Last Edit: 28 May 2003, 05:28:48 by JDSH »

Iwesshome

  • Guest
Re:Turn lights off
« Reply #5 on: 28 May 2003, 06:19:23 »
Just tried it out and works perfectly.

IW

JDSH

  • Guest
Re:Turn lights off
« Reply #6 on: 28 May 2003, 06:21:45 »
Thanks for leting me know it works :-*

GCGoquingco

  • Guest
Re:Turn lights off
« Reply #7 on: 28 May 2003, 12:22:29 »
hey, i made a script called anything.sqs then there i put:

#A
_this select 0 action ["Light Off"]
goto "A"

then i put: this exec "anything.sqs" in the init of my M2 gunner, when i preview, it gives me an error saying "cannot locate object, expected array" something like that... please help :-\

asmodeus

  • Guest
Re:Turn lights off
« Reply #8 on: 28 May 2003, 12:28:44 »
Quote
this exec "anything.sqs"

Try

[this] exec "anything.sqs"

or I think

[] exec "anything.sqs"

should work also   ;)  

Asmo

JDSH

  • Guest
Re:Turn lights off
« Reply #9 on: 28 May 2003, 17:24:39 »
In the init field type
 
            [this] exec "anything.sqs"

  Dont use [] exec "anything.sqs" Because [this] refers to THIS unit or vehicle or MG so the script knows who's light to turn off

I made the script this way so you can use it on several vehicles it doesnt matter how many
   Just type
              [this] exec "anything.sqs"
                                                          In as many MG or vehicles that u want to
      ALSO if you want to make a trigger somewhere give a name to whatever MG or vehicle you are going to use as the target for the trigger and then type in the
On Activation field ---
                          [whatever name youre using ] exec "anything.sqs"

 THANKS ALL FOR LETTING ME KNOW IF IT WORKS FOR YOU TO IF SOMEBODY CAN IMPROVE IT THAT WOULD BE GREAT TO

                         
« Last Edit: 28 May 2003, 22:58:37 by JDSH »

Offline Blanco

  • Former Staff
  • ****
Re:Turn lights off
« Reply #10 on: 30 May 2003, 19:12:33 »
:thumbsup: COOL!!! :thumbsup:

Finally there's a solution!

I also tried it that way a long time ago put a put a delay ~1 between the goto & _this select 0 action ["Light Off"]

One second too much it seems... :)

anyways thanks!
Search or search or search before you ask.

unkie

  • Guest
Re:Turn lights off
« Reply #11 on: 01 Jun 2003, 03:40:45 »
does anyone know how to turn the light off for the c-47?this script doesnt seem to work for it