Jump to content
thecoolsideofthepillow

Disable the Light on a "Device?"

Recommended Posts

I'm just wondering if it's possible to disable the light on the "Device (Assembled)" prop. It has animation states defined, but maybe I'm using the command wrong.

 

_Device animate ["Light_1_rot",1];

or

 

_Device animate ["Light_1_rot",0];

Have no effect. But the light does seem to turn off in the day automatically. I would like to disable not only the light (if it's night time) but also the fans if possible.

Share this post


Link to post
Share on other sites

I'm also interested in doing this.  I can see the device's SimpleObject.animate values in the config browser, but going through the usual 'animate' experiments yielded nothing.  Is there a way to affect any of the animations listed in an object's SimpleObject.animate property?  Running the device through a startup sequence would be a nice storyline addition.

Share this post


Link to post
Share on other sites

You can disable the light by setting it's damage to 1:

_device setHit ["light_1_hit", 1];
sleep 5;
_device setHit ["light_1_hit", 0];

This will turn the light off and on again.

 

I couldn't find a way to disable the ventilators though.

Share this post


Link to post
Share on other sites

Depending on what your purpose is you could just disable simulation.

Share this post


Link to post
Share on other sites

While enableSimulation works if you want to turn off the light at the beginning of a mission it is not possible to turn it off later on. The light will still shine but not turn around anymore.

Share this post


Link to post
Share on other sites
On 7/28/2017 at 4:52 PM, 7erra said:

This will turn the light off and on again.

 

Good idea, thanks.  I'll keep that in mind when I'm fooling with it again.

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

×