Home   Help Search Login Register  

Author Topic: Streetlamp  (Read 619 times)

0 Members and 1 Guest are viewing this topic.

simon_swe

  • Guest
Streetlamp
« on: 12 Mar 2004, 10:36:19 »
How do i activate a streetlamp so its on?

Ive placed it near a road in my night-mission, and i want it to light up the sorroundings...

Can anyone help me?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Streetlamp
« Reply #1 on: 12 Mar 2004, 11:09:49 »
lamppost switchLight mode

Operand types:
lamppost: Object
mode: String
Type of returned value:
Nothing
Description:
Controls lamppost mode. Mode may be "ON", "OFF", "AUTO". "AUTO" is default, lampost is on only during nighttime.

Example:
nearestObject [player, "StreetLamp"] switchLight "Off"

comment »

macguba  May 01, 2003, 13:48  
Another example:
object 159582 switchlight "on"

Use lightIsOn to check the status of a lamppost.
 
 
Plenty of reviewed ArmA missions for you to play

simon_swe

  • Guest
Re:Streetlamp
« Reply #2 on: 12 Mar 2004, 15:33:59 »
Isnt there a simplier way to describe this?

I do not understand what youre saying here.....

Describe it step by step....
« Last Edit: 12 Mar 2004, 15:38:46 by simon_swe »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Streetlamp
« Reply #3 on: 12 Mar 2004, 17:54:54 »
My previous answer is a quotation from the command reference, a document of inestimable value with which you should become acquainted at your earlist opportunity:  there are various versions available in the Editors Depot, and this came from my personal favourite, the online version.

1.  Create your streetlamp.

2.  In its init field write the following:-

this switchlight "on"

3.  If that doesn't work, check that you've done everything correctly.

4.  If it still doesn't work, post back here with more details, in particular what kind of streetlight it is and where you got it.

And I didn't notice before, but

Welcome to the forum!
Plenty of reviewed ArmA missions for you to play

simon_swe

  • Guest
Re:Streetlamp
« Reply #4 on: 12 Mar 2004, 22:23:20 »
I did as you said, and the streetlamp is on!

but the light is positioned in the middle of the streetlamp. How do i elevate it?

Im using the restsiance streetlight(original).


Well, thanks for the welcoming!  :)

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Streetlamp
« Reply #5 on: 13 Mar 2004, 11:41:09 »
Download Baracken from OFP.Gamezone.cz
There is a demo mission with lights you can switch on and off via a Generator hut. It's wicked.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

simon_swe

  • Guest
Re:Streetlamp
« Reply #6 on: 13 Mar 2004, 12:01:01 »
Well, im doin a mission-pack, and i want to keep the addon-req.s at a minimum...I want to use the original streetlights. What to do?

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Streetlamp
« Reply #7 on: 13 Mar 2004, 18:36:01 »
I don't know myself. But I must try to entice you into trying that addon It's Fekkin excellant.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."