aussie battler

How do I turn on placed street lights? [solved]

11 posts in this topic

Hi

Just wondering if anyone knows if you can place & turn on street lamps. I'm trying to light up our Namalsk server at night with street lights.

I place them in the 3d editor, enable simulation in their attributes and they are all still turned off.

Is there a script that will make them turn on or is there a donkeypunch light that works?

+ The photos below shows a street lamp set by default on the Namalsk server (pictured left) & the one on the right is the one I placed :(

cheers

20160617150311_1.jpg

Edited by aussie battler

Share this post


Link to post
Share on other sites
33 minutes ago, aussie battler said:

 

Enable simulation on the street lights then it should work :)

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
53 minutes ago, aussie battler said:

Hi

Just wondering if anyone knows if you can place & turn on street lamps. I'm trying to light up our Namalsk server at night with street lights.

I place them in the 3d editor, enable simulation in their attributes and they are all still turned off.

Is there a script that will make them turn on or is there a donkeypunch light that works?

+ The photos below shows a street lamp set by default on the Namalsk server (pictured left) & the one on the right is the one I placed :(

cheers

20160617150311_1.jpg

double click on that item scroll to you see special states and enable the simulation

Share this post


Link to post
Share on other sites

Yep, definatly works by ticking the box "enabling simulation". Thanks for your help  @hogansheroes and @ka0s.

I had already placed lots of lights so you can just change the code to "true".

 

	["Land_LampStreet_F",[6521.51,9347.96,35.2739],[[-0.983297,0.182009,0],[0,0,1]],[true,true]],
	["RoadCone_L_F",[6516.27,9328.51,36],[[0,1,0],[0,0,1]],[true,true]],
	["RoadCone_L_F",[6509.72,9329.22,36],[[0,1,0],[0,0,1]],[true,true]]
];
{
	private _object = (_x select 0) createVehicle [0,0,0];
	_object setPosASL (_x select 1);
	_object setVectorDirAndUp (_x select 2);
	_object enableSimulationGlobal ((_x select 3) select 0);
	_object allowDamage ((_x select 3) select 1);
} forEach _objects;

The first "true" value is to turn the lights on (enable simulation). The second "true" enables damage which is good for players wanting to take out the lights to enable cover.

 

The lights only come on at night. :)

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.