Jump to content
Sign in to follow this  
Jimmakos

Turn off street lights on Everon map

Recommended Posts

Any way i could turn off the street lights on Warfare.eden (Everon) map? Can't seem to find the propriate classname of the streets lights placed on the map and on the wiki i can only find this:

 

Quote

If you want turn street lamp off in ArmA2, the syntax is:
ID959522=position player nearestObject 959522
ID959522 switchLight "off"

 

Share this post


Link to post
Share on other sites

try this

{
	for "_i" from 0 to count getAllHitPointsDamage _x - 1 do
	{
		_x setHitIndex [_i, 0.97];
	};
} 
forEach nearestObjects 
[
	player, 
	[
		"Lamps_base_F",
		"PowerLines_base_F",
		"PowerLines_Small_base_F"
	], 
	500
];

 

  • Like 1

Share this post


Link to post
Share on other sites

This worked for me, on a Gamelogic's init:

 

{_x switchLight "OFF"} forEach ((getPosATL this) nearObjects ["StreetLamp",distance]);

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×