Sector SetFriction: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "219:'''Sector_SetFriction'''(''tag'', ''amount'') This is a static linedef special which sets Boom-style friction on tagged sectors. Its Doom-format special ID is 223 and whe...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
==Arguments== | ==Arguments== | ||
*''tag'': tag of sectors to affect. They must have the "friction" generalized sector special flag enabled. | *''tag'': tag of sectors to affect. They must have the "friction" generalized sector special flag enabled (have 256 added in Doom format or 2048 in [[UDMF]] format to '''special'''). | ||
*''amount'': optional amount. < 100 is sludge, > 100 is ice. If 0, this will use linedef's length. | *''amount'': optional amount. < 100 is sludge, > 100 is ice. If 0, this will use linedef's length. | ||
==Remarks== | ==Remarks== | ||
In [[UDMF]], you can also set a '''sector''''s '''friction''' field directly. | In [[UDMF]], you can also set a '''sector''''s '''friction''' field directly and avoid using this special. | ||
The friction effect can be turned on or off by using the texture/type floor changing specials, similar to how you can change a sector to be a damaging floor or not. |
Latest revision as of 13:57, 10 May 2018
219:Sector_SetFriction(tag, amount)
This is a static linedef special which sets Boom-style friction on tagged sectors. Its Doom-format special ID is 223 and when used under that format, amount is 0, so it will use linedef's length as parameter.
Arguments[edit]
- tag: tag of sectors to affect. They must have the "friction" generalized sector special flag enabled (have 256 added in Doom format or 2048 in UDMF format to special).
- amount: optional amount. < 100 is sludge, > 100 is ice. If 0, this will use linedef's length.
Remarks[edit]
In UDMF, you can also set a sector's friction field directly and avoid using this special.
The friction effect can be turned on or off by using the texture/type floor changing specials, similar to how you can change a sector to be a damaging floor or not.