RotateUnit(xID,xNE,xDR,xCL,xRS,xTM)

Rotates target unit in specified direction.

ID = Unit ID

Target Unit's ID in ENTD. x00 Affects all units.

NE = No Enemies
-x00: Affect Enemies.
-x01: Do Not Affect Enemies.

DR = Direction Rotated To
0x00: South East
0x01: South
0x02: South
0x03: South West
0x04: South West
0x05: West
0x06: West
0x07: North West
0x08: North West
0x09: North
0x0A: North
0x0B: North East
0x0C: North East
0x0D: East
0x0E: East
0x0F: South East

CL = Clockwise or Counter Clockwise
0x00: Automatic (shortest way)
0x01: Clockwise
0x02: Counter-clockwise

RS = Rotation Speed per 45 Degrees
00: 3/8 seconds
01: 1/4 seconds
02: 1/16 seconds
03: 1/16 seconds
04: 1/16 seconds
05: 1/4 seconds
06: 1/8 seconds
07: 1/16 seconds
08: 3/4 seconds
09: 5 seconds
0A: 1 second
0B: 1/2 seconds
0C: 5/4 seconds

TM = Time before next Unit Rotates.
-x00: Instant.
-xFF: 1 Second.