PointPush SetForce: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "'''PointPush_SetForce'''(''tag'', ''tid'', ''magnitude'', ''use_line_vector'') * UDMF number: 227 * ExtraData number: 480 This is a static special which sets up a pus...") |
No edit summary |
||
Line 7: | Line 7: | ||
* ''tid'': if ''tag'' is zero, this is the tag of push/pull things directly. | * ''tid'': if ''tag'' is zero, this is the tag of push/pull things directly. | ||
* ''magnitude'': if ''use_line_vector'' is 0, use the magnitude from this value directly. It's equivalent of a horizontal line of this length | * ''magnitude'': if ''use_line_vector'' is 0, use the magnitude from this value directly. It's equivalent of a horizontal line of this length | ||
* ''use_line_vector'': if 1, ignore ''magnitude'' and use the linedef length. Note that the resulting magnitude is not exact if the line is non-orthogonal (same calculation as [[AproxDistance]] codepointer). | * ''use_line_vector'': if 1, ignore ''magnitude'' and use the linedef length. Note that the resulting magnitude is not exact if the line is non-orthogonal (same calculation as [[AproxDistance]] codepointer). Warning: other values than 0 and 1 are reserved. |
Latest revision as of 10:05, 9 March 2019
PointPush_SetForce(tag, tid, magnitude, use_line_vector)
This is a static special which sets up a pushing or pulling thing source.
- tag: if nonzero, it's tag of sectors containing push or pull things.
- tid: if tag is zero, this is the tag of push/pull things directly.
- magnitude: if use_line_vector is 0, use the magnitude from this value directly. It's equivalent of a horizontal line of this length
- use_line_vector: if 1, ignore magnitude and use the linedef length. Note that the resulting magnitude is not exact if the line is non-orthogonal (same calculation as AproxDistance codepointer). Warning: other values than 0 and 1 are reserved.