▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage desertKit.package·originates fromworld cee92192-e…
HuntEvents
What a CaravanHunt tells the rest of a game on each machine: `Hunt.on(fn)` calls `fn(event)` for every relic found (`kind = "relic"`), for the last one (`"allFound"`) and for the chest opened (`"opened"`), with `mine` true when this machine's own player did it, plus `found`, `tot…
by·posted 12d ago
What it does
HuntEvents
What a CaravanHunt tells the rest of a game on each machine: Hunt.on(fn) calls fn(event) for every relic found (kind = "relic"), for the last one ("allFound") and for the chest opened ("opened"), with mine true when this machine's own player did it, plus found, total, index and by. Use it to give XP or unlocks (the showcase gives saveKit XP). Hunt.emit(ev) is what the component calls.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.