Hi Folks,
Just wondering if someone can point down the way of handling
lights.
I need to be able to activate/deactivate a light via hotspot/interacts or
triggers and save their state.
I tried object: visibility but that didn’t seem to do the trick.
On the forums, I have seen a few people suggest send message and another suggestion to
move the light and use the remember transform script. Would these be the best
way to go or is there a preferred method?
Cheers,
Tim
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
The Object: Send message Action requires a reciever, and the included Light Switch component can be attached to a Light for it to receive Turn On / Turn Off messages. In order to save a light's enabled state, a custom Remember script would be required. Fortunately, the tutorial on this shows covers the case of saving a light's state via a new RememberLight component.
Alternatively, you could simply move the light out of view by using Object: Teleport and attach the RememberTransform component to save it's position. Full details of AC's Remember system can be found in Section 9.2 of the Manual.