Log inGet started
Package

runtime.module

This package holds more than this page lists. See all of its files in its world.

README.md

kitGallery.runtime

The gallery's play-time wiring, called from scenes/gallery.scene/entrypoint.luau (onLoad, the play-mode load hook, every peer): require("kitGallery.runtime").start().

  • places every scaresKit scare at its booth (gscare:<id>:<yaw> spots) with a manual trigger; a booth button rebuilds the props and fires it again, as often as you like;
  • wires every gbtn:<action>:<arg> button: flashlightKit batteries (give + swap + nearly empty), failures (fail for 6 s), story flicker, charge, restore; eerieLightsKit states (setState, returning after 6 s), the circuit (circuit), the Silhouette (silhouette) and the Apparition (re-arm + flicker); stalkerKit noises (hearNoise inside a pen);
  • keeps the light-state readouts (gstat:<lamp>) current from stateChanged;
  • wakes each monster pen (Stalkers.setActive) only while the local player is within 16 m.

R.stop() drops the wiring, R.status() reports what was wired and the last presses.