Skip to main content

Mossling Spin Fx

Based on game build 714014 | Last updated: 2026-03-06

Overview

mossling_spin_fx is a prefabricated entity used to render a visual and audio effect during the mossling's spin attack. It uses an animation bank (mossling_spin_fx), plays a looping spin animation, emits sound at fixed intervals, and automatically removes itself when the animation completes. The entity is non-persistent and only runs logic on the master simulation.

Usage example

local inst = SpawnPrefab("mossling_spin_fx")
if inst then
inst.Transform:SetPosition(x, y, z)
end

Dependencies & tags

Components used: None identified.
Tags: Adds FX.

Properties

PropertyTypeDefault ValueDescription
soundcountnumber0Tracks how many times the sound has played (limit: 2).
taskTasknilScheduled task for periodic sound playback.

Main functions

No main public functions beyond the constructor.

Events & listeners

  • Listens to: animover — triggers removal of the entity (via inst.Remove).
  • Pushes: None.