Skip to content

Create indexed TubeFiredN and sum TubeFired hardware variables for mi…#2813

Open
CMDR-Vulkarius wants to merge 1 commit intodaid:masterfrom
CMDR-Vulkarius:master
Open

Create indexed TubeFiredN and sum TubeFired hardware variables for mi…#2813
CMDR-Vulkarius wants to merge 1 commit intodaid:masterfrom
CMDR-Vulkarius:master

Conversation

@CMDR-Vulkarius
Copy link
Copy Markdown

…ssile events

Facilitated by introducing a simple fire counter per-tube:

  • Increments when a missile projectile is spawned
  • Resets when Weapons starts loading (successfully) something else into the tube

The TubeFiredN variables give float versions of each tube counter.
The TubeFired variable gives a sum of all tube counters for convenient setup of one DMX light.
These provide rising edges for triggering hardware events.

Example of hardware.ini suggested usage:

[event]
trigger = >TubeFired
target = MissileLight
runtime = 0.2
value = 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant