Sector SetCurrent: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "220:'''Sector_SetCurrent'''(''tag'', ''strength'', ''angle'', ''flags'') Static special that sets a current on tagged sector(s). This is similar to Sector_SetWind, but a...") |
No edit summary |
||
Line 9: | Line 9: | ||
*''flags'': optional modifier which can be a sum of any of the following values: | *''flags'': optional modifier which can be a sum of any of the following values: | ||
:*1 (use line vector): if added, the current's strength will be defined by linedef's length and direction, like in [[Boom]], not by ''strength'' and ''angle''. | :*1 (use line vector): if added, the current's strength will be defined by linedef's length and direction, like in [[Boom]], not by ''strength'' and ''angle''. | ||
:*2 (Heretic | :*2 (Heretic current): if added, the current will behave like in [[Doom wiki:Heretic|Heretic]]. Otherwise it will behave like in Boom. | ||
==See also== | ==See also== | ||
*[[Scroll_Floor]] | *[[Scroll_Floor]] | ||
*[[Sector_SetWind]] | *[[Sector_SetWind]] |
Revision as of 16:09, 9 May 2018
220:Sector_SetCurrent(tag, strength, angle, flags)
Static special that sets a current on tagged sector(s). This is similar to Sector_SetWind, but a current only affects things which touch the ground or are submerged in deep water (as when generated by Transfer_Heights). This is most likely useful for moving water currents, as an alternative to Scroll_Floor.
Arguments
- tag: tag of affected sector(s).
- strength: current's strength. Ignored if flags has bit 1.
- angle: current's direction as a byte angle. Ignored if flags has bit 1.
- flags: optional modifier which can be a sum of any of the following values: