Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useClipMark

useClipMark(entity, mark, heard): void

Calls heard each time entity’s one-shot clip crosses the mark named mark, one registerClip gave the clip, on the page that draws it: where a look times an effect to the motion, such as shards as the hands come down, as Roblox’s GetMarkerReachedSignal and Unity’s animation events do. The cast’s own release is the room’s, which SpellLandedEvent and SpellStruckEvent carry; this is for what the eye sees. It hears each mark once, the frame the clip passes it, two in one frame included.

Parameter Type
entity Entity
mark string
heard (reached) => void

void