TurnProjectile: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{Codepointer|description=Like Turn, but also changes the velocity to match the new angle. |usage='''A_TurnProjectile'''(''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...") |
(No difference)
|
Latest revision as of 15:36, 12 October 2024
Description
Like Turn, but also changes the velocity to match the new angle.
Usage
A_TurnProjectile(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
The main addition over Turn is that this one also updates the velocity according to thingtype speed to the direction set by the new angle. You can make projectiles which change course.