mpf-docs icon indicating copy to clipboard operation
mpf-docs copied to clipboard

Please document how to specify event posting delays

Open PinGizmos opened this issue 5 years ago • 5 comments

From looking at some of the sample configs, it looks like there is a way to specify a delay in posting events in the event_player. For example:

event_player:
  some_posted_event:
    event_to_be_posted|100ms

Is this "piping" of a delay time officially supported? If so, can you please add it to the docs?

Thanks

PinGizmos avatar Nov 03 '20 16:11 PinGizmos

Researching this for you.

flamtime avatar Nov 07 '20 07:11 flamtime

I think this works only in a few places:

  • Specifically in event_player. This is logic inside the player.
  • This is also implemented device_control_events (https://docs.missionpinball.org/en/dev/config/instructions/device_control_events.html). You can find out in the config reference if something is a device_control_event type. Most xxx_events properties are.

Maybe more places but I don't recall any. I totally agree that the documentation could be better here and this also confused me in the past.

jabdoa2 avatar Nov 07 '20 11:11 jabdoa2

Just mentioning that this doco could also reference the delay available in actioning events in some devices, such as reset_events:

founfabug avatar Apr 05 '23 09:04 founfabug