Skip to content

Should a disabled "shot_group" fire off events such as _hit, _complete, etc? #148

Answered by avanwinkle
bernarma asked this question in Q&A
Discussion options

You must be logged in to vote

There is some nuance here in that shot groups themselves are not truly disabled or enabled, they are merely a collection of shots and post additional events for those shots. Calling enable on a shot group just enables all of the shots in that group, while disable disables the shots in that group.

If you had a shot present in multiple shot groups, and enabled one of the groups, hitting the shot would indeed trigger hit events for all the shot groups that shot is in. And when the shot group initializes, it will always post its current state so mode startups and lights can correctly configure themselves.

So that's all expected. However if you have a shot that's exclusive to a shot group, and…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bernarma
Comment options

Answer selected by bernarma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants