self.machine.autofires.*

class mpf.devices.autofire.AutofireCoil(self_inner, *args, **kwargs)

Bases: mpf.core.system_wide_device.SystemWideDevice

Coils in the pinball machine which should fire automatically based on switch hits using hardware switch rules.

autofire_coils are used when you want the coils to respond "instantly" without waiting for the lag of the python game code running on the host computer.

Examples of autofire_coils are pop bumpers, slingshots, and flippers.

Args: Same as Device.

Accessing autofires in code

The device collection which contains the autofires in your machine is available via self.machine.autofires. For example, to access one called "foo", you would use self.machine.autofires.foo. You can also access autofires in dictionary form, e.g. self.machine.autofires['foo'].

You can also get devices by tag or hardware number. See the DeviceCollection documentation for details.

Methods & Attributes

Autofires have the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.

disable(**kwargs)

Disable the autofire coil rule.

enable(**kwargs)

Enable the autofire coil rule.