Open ErinRoseWebs69 opened 2 years ago
As said in previous issue: This would be beneficial for my mod as this is the whole premise of my mod, as my mod is based around bridges and using different light bridges in creative ways to solve puzzles. :)
Related to #764
Which component should be improved?
Entity
Describe your suggestion
Add ability to detect bridge/laser/other objects color via vscript/cscript and a new filter class: -filter_activator_color -trigger_color_detector (can be supplemented with a trigger_multiple with a script
if the activator's color value matches up with the requested color value, activate. else, deactivate. inverting it will do the obvious. while the normal laser detector entity would work, it would only apply to laser, not light bridges or funnels. Having the filter and/or trigger will help a shit ton with this, especially so that people dont have to make different scripts for different things, i.e. wanting a certain color (purple, for example) to activate one thing at one point, and another thing at a different point.
Expected result
Get appropriate color from the activator entity. Can elaborate more if needed.