Turn: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(cat)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Type: Miscellaneous, parameterized
{{Codepointer|description=Rotates a thing's angle.
|usage='''A_Turn'''(''mode'', ''counter_or_value'')


Parameter Information:
'''misc1''' ''angle''
*Unknown 1 = Integer number of degrees to turn (default of 0 = 0 degrees)
|parameters=
*''mode'': if 0 (default), use the '''misc1''' field ''angle'', which is the number of degrees to increase angle.


Purpose: The object will turn from its present angle the provided number of degrees. New to MBF.
If 1, then ''counter_or_value'' is a counter ID (0 to 7) with the number of degrees to rotate, not '''misc1'''.


Thunk: Yes.
If 2, then ''counter_or_value'' is a counter ID (0 to 7) with the 32-bit angle where 0x20000000 maps to 45 degrees.
[[Category:Codepointers]]
 
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.

See also