Quagmire Altar
Based on game build 714014 | Last updated: 2026-03-06
Overview
The quagmire_altar prefab represents an interactive altar used in the Quagmire scenario. It visually displays a food item (via klump-based asset loading) and supports networked synchronization of its displayed food ID and optional camera focus behavior. It integrates with the focalpoint system to control camera attention during gameplay.
Usage example
local inst = SpawnPrefab("quagmire_altar")
inst.Transform:SetPosition(x, y, z)
inst.foodid:Set(42)
inst.klumpkey:Set("key_42")
inst._camerafocus:Set(true)
Dependencies & tags
Components used: animstate, soundemitter, transform, network, focalpoint (via TheFocalPoint.components.focalpoint)
Tags: Adds "quagmire_altar"
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
foodid | net_byte | 0 | Networked byte representing the food item ID shown on the altar. |
klumpkey | net_string | "" | Networked string key used to load dynamic assets for the food item. |
_camerafocus | net_bool | false | Networked boolean controlling whether the altar becomes a camera focus source. |
Main functions
Constructor fn()
- Description: Initializes the altar entity, sets up visual and networked state, and registers event listeners. On the server, it triggers the
master_postinitfunction from the server-specific data module. - Parameters: None (this is the prefab constructor function).
- Returns:
inst— the initialized entity. - Error states: None documented.
Events & listeners
- Listens to:
camerafocusdirty— triggersOnCameraFocusDirtyto manage camera focus state. - Pushes: None directly; relies on
keydirtyevent for client-side asset loading (not pushed by this prefab itself, but is a named replication event).