Closed maxlyth closed 2 years ago
Merge in the latest from develop branch. Happy to take a look. You're right it is illogical which makes me think there must be a reason I specifically didnt pass parameters along.
This seems to have stagnated so I have added a concrete example to the documentation in Doc Pull request #4 https://github.com/danobot/ec-docs/pull/4
Thank you for your contribution
Add param support to helper functions
It seems illogical that param support is specifically unavailable when calling helper functions. This makes it impossible to use a generic script that handles motion where multiple EntityControllers can pass a differentiating parameter to that script. An example might be to pass the room name to the helper function and to the script which could in turn initiate a scene using the same parameter.
Code changes
Modification is restricted to handleTriggerOnDeactivateEntities and handleTriggerOnActivateEntities functions. These functions should be consistent in param handling and effectively the same changes are applied to both
Configuration
Checklist
conventional commit
formatting.develop
and targetsdevelop
Related Issues
Param support in Helper Functions #249
Closes