Skip to main content

Icebox Victorian Frost Fx

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

Overview

icebox_victorian_frost_fx is a non-simulating visual effect entity used exclusively for rendering animation during the Victorian Icebox event. It plays a prelude animation (pre) followed by a looping animation (loop) on the master client, and terminates after the animation completes. The entity has no simulation logic beyond basic lifecycle management.

Usage example

--Typically spawned internally by the game via Prefab spawner during the Icebox event
local inst = Prefab("icebox_victorian_frost_fx")
inst:ListenForEvent("kill", function()
if inst.components.transform ~= nil then
inst.Transform:SetPosition(x, y, z)
end
end)

Dependencies & tags

Components used: animstate, transform, network
Tags: Adds FX

Properties

PropertyTypeDefault ValueDescription
_killtaskfunction/task referencenilInternal task reference to the delayed entity removal callback.

Main functions

Kill(inst)

  • Description: Initiates immediate termination of the effect by scheduling OnKillTask to run after the remaining animation duration. Ensures no duplicate scheduled tasks.
  • Parameters: inst (entity) — the entity instance to kill.
  • Returns: Nothing.
  • Error states: If _killtask is already set, does nothing.

OnKillTask(inst)

  • Description: Internal callback scheduled by Kill(); plays the post-animation (pst) and removes the entity after a short buffer.
  • Parameters: inst (entity) — the entity instance being killed.
  • Returns: Nothing.

Events & listeners

  • Listens to: None identified.
  • Pushes: None identified.