Home   Help Search Login Register  

Author Topic: Light ON  (Read 459 times)

0 Members and 2 Guests are viewing this topic.

VipNatePimp

  • Guest
Light ON
« on: 22 Aug 2003, 23:54:34 »
How do you make a heli or any other viecle turn its lights on. All i found was how do turn a streetlamp on, and i can't even get that to work lol  ???

SheepOnMintSauce

  • Guest
Re:Light ON
« Reply #1 on: 23 Aug 2003, 00:27:36 »
this inflame true;
Placed in the init field of a fire or streetlamp will turn it on.
I imagine it's the same for a vehicle though.

vehiclename inflame true;

Failing that your vehical will burst into flames, becoming an expensive metal bonfire.  :P

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Light ON
« Reply #2 on: 23 Aug 2003, 00:54:37 »
lol sadly that's unlikely to work.   Try setting the behaviour to "safe", either in a waypoint or using the command

lorry1 setBehaviour "safe"

It will still only work if it's dark enough though.
Plenty of reviewed ArmA missions for you to play

SheepOnMintSauce

  • Guest
Re:Light ON
« Reply #3 on: 23 Aug 2003, 08:09:00 »
While looking through the command reference I noticed this.

Quote
lamppost switchLight mode
Operand types:
    lamppost: Object
    mode: String
Type of returned value:
    None

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"


So, perhaps something like

Code: [Select]
vehical1 switchlight "On"
might help with it.