OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Ironman on 19 Feb 2010, 12:03:55

Title: Empty Truck w/lights on
Post by: Ironman on 19 Feb 2010, 12:03:55
There is probably a work around for this( ejecting a guy out of a car at night). But for the sake of asking a stupid question.

I place a empty car/truck/armor in the editor at night. Is there a command to turn the lights on? I tried "inflame" and "switchlight" so far, nada.
Title: Re: Empty Truck w/lights on
Post by: haroon1992 on 19 Feb 2010, 12:13:01

Code: [Select]
anyunitname action ["LIGHTON",vehiclename]Eg.
player action ["LIGHTON",truck1]

loon1 action ["LIGHTON",car1]

Note : Only units can be used.
car1 action ["LIGHTON",car2] will not work.

To lit a searchlight,you have to place a gamelogic and then  use :
Code: [Select]
gamelogicname moveingunner searchname
Title: Re: Empty Truck w/lights on
Post by: Ironman on 19 Feb 2010, 12:36:23
I wouldn't even need to do that... it is a night mission they will turn on lights just getting in it. All I would have to do is eject em out once they are in.
Title: Re: Empty Truck w/lights on
Post by: haroon1992 on 19 Feb 2010, 14:34:44
 :o

I've shown you the most appropriate way of turning lights on and off.
You question isn't appropriate or am I the one who don't have the ability to understand it?

To eject him,
soldiername action ["Eject",vehiclename]

Anyway,do what you want to do.... :good:
Title: Re: Empty Truck w/lights on
Post by: Wolfrug on 19 Feb 2010, 15:05:00
Use a game logic as an invisible unit, then delete/eject that one, and it should work out okay I think :)

Don't think there's a workaround, no - someone has to turn those lights on!

Wolfrug out.
Title: Re: Empty Truck w/lights on
Post by: Ironman on 19 Feb 2010, 15:59:11
haroon, I wasn't trying to be rude. Sorry if that is how it sounded. Thanks for your suggestions.

thanks wolf.....