Warning

This is the dev documentation for an unreleased version of MPF!

This is the documentation for MPF 0.56+, which is the “dev” (next) release of MPF that is a work-in-progress. Unless you’re specifically looking for this version, you probably want to use the version of documentation called “latest” which is for the latest released version of MPF. That documentation is at docs.missionpinball.org/en/latest.

switch_player (example config files)

Machine config examples

Here are some example machine-wide config files that show real-world examples of how these configs are used.

#config_version=5

switches:
    s_test1:
        number:
        x: 0.4
        y: 0.5
        z: 0
    s_test2:
        number:
        x: 0.6
        y: 0.7
    s_test3:
        number:

plugins: switch_player

switch_player:
    start_event: test_start
    steps:
      - time: 100ms
        switch: s_test1
        action: activate
      - time: 600ms
        switch: s_test3
        action: hit
      - time: 100ms
        switch: s_test1
        action: deactivate
      - time: 1s
        switch: s_test2
        action: activate
      - time: 1s
        switch: s_test3
        action: hit
      - time: 100ms
        switch: s_test2
        action: deactivate
      - time: 1s
        switch: s_test3
        action: hit