Home   Help Search Login Register  

Author Topic: lightison command  (Read 1652 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
lightison command
« on: 01 Jun 2003, 07:46:49 »
I am trying to test in a script to see if a light is on but it does not work.

?lightison (object 'streetlight') == "ON"

what is wrong?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:lightison command
« Reply #1 on: 01 Jun 2003, 11:43:43 »



the syntax is wrong  :)

try:


? lightIsOn nearestObject [MyObject, "StreetLamp"] != "OFF"

see the diff  :D

? lightison (object 'streetlight') == "ON"       <===WRONG!




gadolinite

  • Guest
Re:lightison command
« Reply #2 on: 01 Jun 2003, 17:13:08 »
what goes in the quotes, the object ID of the light?

gadolinite

  • Guest
Re:lightison command
« Reply #3 on: 01 Jun 2003, 17:16:02 »
I am also used to error messages for wrong syntax, but I guess that is another story for strings

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:lightison command
« Reply #4 on: 01 Jun 2003, 17:24:46 »
I just tested this and it works

Trigger

Condition:   lightIsOn object 159582 == "auto"
On activation:  hint "lighton"

Of course, that doesn't actually tell you if the light is on or off, you'll have to do more work for that.  But at least we have the syntax sorted out.




Now, do you know which light that is?   First person with the correct answer wins a lifelong timeshare on a seafront villa in Moscow.

If you think long and hard you might get it first guess.
« Last Edit: 01 Jun 2003, 17:28:15 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:lightison command
« Reply #5 on: 01 Jun 2003, 19:53:14 »

...Now, do you know which light that is?   First person with the correct answer wins a lifelong timeshare on a seafront villa in Moscow...



ROFLMAO, I know that one macky.... it's a STREETLAMP  :o ;D ;D ;D ;D ;D :beat:



Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:lightison command
« Reply #6 on: 01 Jun 2003, 20:11:31 »
Wrong. :tomato:  It's not a streetlamp. ;D

It is a light though.

Now that's got you thinking  heheheheheh  :hmm:
Plenty of reviewed ArmA missions for you to play

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:lightison command
« Reply #7 on: 01 Jun 2003, 20:13:55 »
 ::) yanno ,mac. I think I'll go for a beer instead  ;D l8r, d00d  8)

Offline FatWombat

  • Members
  • *
  • Dangerous Marsupial
Re:lightison command
« Reply #8 on: 01 Jun 2003, 20:30:35 »
Is it the light on the house that is owned by the main character in the resistance campaign?
"He who aims at nothing is sure to hit it." - Confucius

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:lightison command
« Reply #9 on: 01 Jun 2003, 20:50:17 »
@ fatty

yes dats da 1 ;D deres very easy way 2 check dat ;)

make triger dat setpos u in da place of da object  ;)  :P

btwq wasnt da villa dat u ofered da betaers ?  ::)

seaside in moscow :wow: best offer i ever herd ::)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:lightison command
« Reply #10 on: 01 Jun 2003, 23:35:21 »
Yep, it's Victor Troska's porch light.   8)

And no, it's not the same villa .... I own the whole seafront  ;D
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:lightison command
« Reply #11 on: 01 Jun 2003, 23:59:21 »
:wow:

realy ?

kool - need 2 visit moscow som time soon ;D can u gime 1 of em villas ?  8) just 4 a month  ;)  ;D ::)

btw isnt dat smily  8) <== is blind man smily ? ::) :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:lightison command
« Reply #12 on: 02 Jun 2003, 00:01:36 »
Why don't you have two, LCD - I 've got plenty.    Pick whichever ones you fancy, the key is on a piece of string through the letterbox.
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:lightison command
« Reply #13 on: 02 Jun 2003, 00:05:27 »
kool

tanks ;D

but i stil need 2 find map dat get me dere ;D - nd money 4 da plane ::)  :o

lets stop spamin dis mans thread ;)

im just postin 2 keep up w/ u  :P  ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:lightison command
« Reply #14 on: 02 Jun 2003, 00:53:43 »
*cough* yes indeed.

Gad, have we solved your problem?    If so, then click the ol' solve button.     ;)
Plenty of reviewed ArmA missions for you to play