Skip to content

Prevent the auto-plunging of a ball to the playfield from the plunger lane when a physical multiball_lock captures ball? #159

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

You must be logged in to vote

There are two ways to do this, off the top of my head.

First would be to use a queue_relay_player to block the eject attempt until after the user plunges the ball, at which point MPF may recognize that the ball is missing and if the playfield has already accepted the ball, the eject path may be cancelled. Or, it may try again and you'll have two balls.

Second would be to use the replace_balls: config option set to zero so no balls are replaced in the lock. It'd be up to you to manually trigger an add_ball event to add a ball to the playfield, which should accept the player_controlled argument to require a pluge.

I haven't looked into the code for either approach, but I think the second wo…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@bernarma
Comment options

@bernarma
Comment options

Answer selected by bernarma
Comment options

You must be logged in to vote
0 replies
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