190:Static_Init (tag, prop, flip/ceiling, movetype)
- tag: Tag of affected sector, or lineid of concerned linedefs.
- prop: Sector property to set.
- flip/ceiling: If prop is set to 255, this is a boolean for whether to flip the sky texture. If prop is set to 3, this is a boolean for whether the control surface is the ceiling or not (and it not, obviously, it's the floor).
- movetype: If prop is set to 3, determines which type of movement to use, using the same values as in Sector_SetLink.
Sets a sector property during level initialization. Static_Init was designed to copy the functionality of several Boom, MBF and Eternity Engine linetypes; the specific action depends on the second argument.
|0||Gravity||Sets the gravity in tagged sectors to the length of the linedef (333 in Doom-format maps).|
|1||Color||Sets the light or fog color in a sector. An RRGGBB hex format color used as an upper texture name will set the light color; a lower texture will set the fog color.|
|2||Damage||Sets damage in tagged sectors to the length of the linedef (335 in Doom-format maps).|
|3||Link||Defines a sector link with line IDs instead of tags, as in Eternity.|
|253||Sector||Define special handling for adding Eternity Engine ExtraData to sector and line. Used by XLAT for Eternity levels.|
|255||Sky||Uses the line's upper texture as the sky in any tagged sectors (that is, the sky flat will be replaced with that texture instead of the sky indicated in MAPINFO). If flip is set to 1, the texture will be flipped, as is normal behavior for Doom skies. Offsets and scrolling of the texture are transferred to the sky as well. Scrolling, however, is only at a tiny fraction of the wall texture's scrolling speed. This corresponds to the MBF sky transfer linetypes (271 and 272).
Note: The line's lower texture, if set and of the same dimensions as the upper texture, will be used during lightning flashes.
Conversions from linedef types
The following Doom map format types can be converted as Static_Init: