Turn: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Codepointer|description=Rotates a thing's angle. | |||
|usage='''A_Turn'''(''mode'', ''counter_or_value'') | |||
'''misc1''' ''angle'' | |||
*'''misc1''' | |parameters= | ||
*''mode'': if 0 (default), use the '''misc1''' field ''angle'', which is the number of degrees to increase angle. | |||
If 1, then ''counter_or_value'' is a counter ID (0 to 7) with the number of degrees to rotate, not '''misc1'''. | |||
[[ | If 2, then ''counter_or_value'' is a counter ID (0 to 7) with the 32-bit angle where 0x20000000 maps to 45 degrees. | ||
If 3, then ''counter_or_value'' is the value in degrees. | |||
|notes=This changes the direction it faces. | |||
|seealso= | |||
*[[Face]] | |||
*[[TurnProjectile]]}} |
Latest revision as of 15:38, 12 October 2024
Description
Rotates a thing's angle.
Usage
A_Turn(mode, counter_or_value)
misc1 angle
Parameters
- mode: if 0 (default), use the misc1 field angle, which is the number of degrees to increase angle.
If 1, then counter_or_value is a counter ID (0 to 7) with the number of degrees to rotate, not misc1.
If 2, then counter_or_value is a counter ID (0 to 7) with the 32-bit angle where 0x20000000 maps to 45 degrees.
If 3, then counter_or_value is the value in degrees.
Examples
No examples given.
Notes
This changes the direction it faces.