I made a “Event Toolset” package that can be used to change entity attributes via events.
The script name scheme is
“[Entity type][Attribute name]Changer”
For non-boolean attributes you can setup up to 5 different values and apply them by referencing their respective functions.
Target: Change light color to green when a player is inside a trigger and to red when the player leaves it.
1.Add the LightColorChanger script to your light.
2.Set the first “Colors” property element to red, the second one to green.
3.Setups two events (OnTriggerEnter and -Exit on the trigger) and call SetColor1 to change the light to red or SetColor2 to change it into green.
25 scripts that will help you with achieving your goals - entirely coding free!