Skip to content

List of available fields

GLide KS edited this page May 22, 2026 · 4 revisions

These fields are intended to be used with LightObjects table. example:

LightObjects[MT_BLUECRAWLA] = {
    color = SKINCOLOR_BLUE,
    flicker = true,
    floorlight = true
}
field type description default value
color int skincolor or string translation Sets the corona’s color using either a translation or skincolor. object's color or SKINCOLOR_SILVER
scale fixed_t Sets the desired scale for the corona. This field is equivalent to mobj_t.scale. FRACUNIT
alpha fixed_t Sets the translucency level for the corona. This field is equivalent to mobj_t.alpha. FRACUNIT
floorlight boolean If enabled, spawns an additional corona as a floorsprite. Note: the floorlight doesn't adjust to the floor’s slope. false
stayondeath boolean If enabled, the corona remains visible when the object dies. Note: This does not mean the corona will remain after the object is removed. false
nothink boolean Uses a minimal thinker for the corona. Highly recommended if your object is static and won’t move, as it improves performance. If any movement, the corona is removed. false
hide_on_lite boolean Hides the corona when corona_litemode is enabled. Useful for objects that may appear in large quantities. false
flicker boolean Makes the corona always flicker. false
states boolean or table Allows the corona to show only in specific object states.

Example: states[S_POSS_RUN1] = true

Can also be used as a table to override color, scale, or alpha for each state.

Example: states[S_POSS_RUN1] = {color = SKINCOLOR_RED, scale = FU/3, alpha = FU/2}

Use the sprite subfield to also restrict by sprite.

Example: states[S_POSS_RUN1] = {sprite = SPR_POSS}
N/A
postthink boolean Moves the corona in the PostThinkFrame hook instead. Enable only if the corona's movement is delayed relative to the object. Used by MT_METALJETFUME in the Lighting System. false
zoffset int number Adjusts the corona’s vertical offset (spriteyoffset) from its origin. The origin is the top of the object by default; if centered_offset is enabled, the origin is the object’s center. 0
centered_offset boolean Sets the corona’s offset origin at the object’s center instead of its top. false

Clone this wiki locally