OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: DucusSumus on 17 Jul 2008, 08:21:26

Title: [SOLVED] Disabling Lighthouses
Post by: DucusSumus on 17 Jul 2008, 08:21:26
I'm working on a mission where I'd like to be able to have the player turn off a lighthouse building's light via an addAction.  The trouble is I can't find a way to do this.  My first thought was switchLight, but that only seems to apply to streetlamps; in fact, when I tried it on the lighthouse object, it crashed the game.  Any thoughts?
Title: Re: Disabling Lighthouses
Post by: Mandoble on 17 Jul 2008, 09:01:47
Might be you can place an object covering the lighthouse top, I think ArmA comes with a big black box object, cannot remember the class name.
Title: Re: Disabling Lighthouses
Post by: DucusSumus on 17 Jul 2008, 17:44:08
Interesting idea, but unfortunately, the light seems to shine right through the black cube object... 
Title: Re: Disabling Lighthouses
Post by: Mandoble on 17 Jul 2008, 17:49:39
So what you see all the time is a bright spot at the lighthouse top and then also a visible cone of "light" turning around the building, right?
Title: Re: Disabling Lighthouses
Post by: DucusSumus on 17 Jul 2008, 18:07:24
Correct.  The bright spot isn't really the problem so much as the cone of light.
Title: Re: Disabling Lighthouses
Post by: Luke on 17 Jul 2008, 18:22:06
DucusSumus,

I can't rightly remember the command, but perhaps you could turn it off like a street light.

Here's YOUR reply, as always.

Luke
Title: Re: Disabling Lighthouses
Post by: DucusSumus on 17 Jul 2008, 18:24:56
The command is switchLight, and that was the first thing I tried.  Unfortunately, all it did was crash the game.
Title: Re: Disabling Lighthouses
Post by: i0n0s on 17 Jul 2008, 20:06:10
As far as I remember the light goes of if you damage the lighthouse to ~0.9.
If no one shoots at it, it shouldn't be a problem.
Title: Re: Disabling Lighthouses
Post by: Mandoble on 17 Jul 2008, 21:17:45
True, in fact with 0.91, and then you can fire at the lighthouse as much as you want, it would be really hard to destroy it even starting with a damage level of 0.91.
Title: Re: Disabling Lighthouses
Post by: DucusSumus on 18 Jul 2008, 01:26:59
Superb.  Thanks all!
Title: Re: [SOLVED] Disabling Lighthouses
Post by: Knight Trane on 18 Jul 2008, 18:03:17
Excellent resolution.  Simple and practical. 

On a side note:  Would it be possible to keep resetting the Lighthouse Damage to .91 if someone decided to start shooting it. 
...And do the traffic lights in Parasio react the same way?

I'll stop there, or I'll never stop. LOL!!!  :laugh:

Thanks.