Home   Help Search Login Register  

Author Topic: Turning ON Runway Lights??  (Read 848 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Turning ON Runway Lights??
« on: 08 Mar 2003, 09:04:04 »
Newbie Scripting. I have (8) runway lights(markers) that I would like to turn on when a helo approaches "H" landing marker.  This inflame true works fine. I would like them to stay on for about 2 minutes. Any help getting started would be great. I have read some of the TuTs on scripts. Do all i need is to tell rwy1- thru- rwy8 Exec "lightup.sqs" in the trigg. then in the script  just put  this                  inflame true
                                                           ~120
                                                           this inflame false
                                                            exit
 :P
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

Jester

  • Guest
Re:Turning ON Runway Lights??
« Reply #1 on: 08 Mar 2003, 12:47:28 »
To get them all to light up I think its

;Turn on all lights script

["rwy1,rwy2,rwy3,rwy4,rwy5,rwy6,rwy7,rwy8"] this inflame true
~120
["rwy1,rwy2,rwy3,rwy4,rwy5,rwy6,rwy7,rwy8"] this inflame false
exit

Nasty Buttler

  • Guest
Re:Turning ON Runway Lights??
« Reply #2 on: 08 Mar 2003, 14:54:51 »
is this done with an unofficial addon??
if it ISNT can u please explain in more detail what you are doing, cause im very interested in what u are saying.

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:Turning ON Runway Lights??
« Reply #3 on: 08 Mar 2003, 16:24:15 »
Well like I said I,m a newbie. It didn't work. No errors or anything the lights did not come on. I just copied and paste in Notepad. So probably trigger set wrong.
Trig set:   east   once
                 present
           condit: ehelo1 in thislist
           activat: [rwy1,rw2,....rwy8] Exec [lightson.sqs]

Nasty B. Not an offical Addon- I think I downloaded it on the Cech site. What I plan to do is light up around an "H" for a moment on secret base. Just a visual clue for my fire happy mates inwhich if they take on everybody they need to go thru.- three bases. Instead of by passing them and getting to the this"SCRT"  base to capture a Mas Scienctist.
I looked it up in my files its called Colored Lights. I have it in zip form ;)
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

keou

  • Guest
Re:Turning ON Runway Lights??
« Reply #4 on: 09 Mar 2003, 07:56:47 »
hey sharky, i'm new at all this too.  however, i get it to work this way:

keep everything the same but change your activation line to: [] exec "lightup.sqs"

and make your lightup.sqs read this:

rw1 inflame true
rw2 inflame true
rw3 inflame true
rw4 inflame true
rw5 inflame true
rw6 inflame true
rw7 inflame true
rw8 inflame true
~120
rw1 inflame false
rw2 inflame false
rw3 inflame false
rw4 inflame false
rw5 inflame false
rw6 inflame false
rw7 inflame false
rw8 inflame false
exit


obviously i don't quite get arrays and all that jazz yet.  however, your setup was asking for an object and not an array or group.  i'm sure there's an easier way, but i don't know of one yet.  :-\

i've included my example.  i have two helicopters so you can see that only one will trigger the lights.  please note the heli you'll be flying is named bob :beat:

hope this'll help.

Jester

  • Guest
Re:Turning ON Runway Lights??
« Reply #5 on: 09 Mar 2003, 11:52:22 »
Make the lightson.sqs and place it in your mission folder, then in the activation field of the trigger put this.............

[] exec "lightson.sqs"

The little script I did is a much smaller one, but use which ever one you like.

Jester

  • Guest
Re:Turning ON Runway Lights??
« Reply #6 on: 09 Mar 2003, 11:54:49 »
is this done with an unofficial addon??
if it ISNT can u please explain in more detail what you are doing, cause im very interested in what u are saying.

Its done using notepad and placing the file in your mission folder..........There are a few titorials on doing this so feel free to browse the main page for them...... :)

keou

  • Guest
Re:Turning ON Runway Lights??
« Reply #7 on: 09 Mar 2003, 15:30:00 »
Jester, when i use your script, i get an error

'["rwy1,rwy2,rwy3,rwy4,rwy5,rwy6,rwy7,rwy8"] |#| this inflame true' Error unknown Operator this

all that i change is the lights script (an my lights are labeled rw, so i change that).

however, listing the lights, as in my example, will work.

what am i doing wrong?  ofp won't allow me to use this inflame true with an array or a group assignment.  :-\

"oh no, keou is down"  :)
« Last Edit: 09 Mar 2003, 15:31:53 by keou »

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Turning ON Runway Lights??
« Reply #8 on: 10 Mar 2003, 01:32:06 »
Welcome to the forums, guys

The syntax is slightly wrong.... you want:

"_x inflame true" foreach [rwy1,rwy2,rwy3,rwy4,rwy5,rwy6,rwy7,rwy8]

;)

keou

  • Guest
Re:Turning ON Runway Lights??
« Reply #9 on: 10 Mar 2003, 05:43:49 »
ah!...thank you very much! :D

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:Turning ON Runway Lights??
« Reply #10 on: 10 Mar 2003, 23:31:14 »
Hey Thanks Guys for the Help :) I used Keou's script and it worked. Although Looking Sui's looks a bit more 'Spit and Polished', Like a Officer with Night Equipment, ;D so I will have to give his a try also. Once again thanks guys. :wave: 8)
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance