Code archives/3D Graphics - Misc/Return Entity Angle 0-360
This code has been declared by its author to be Public Domain code.
Download source code
| Useful for sending an angle as one byte in a net packet. |
;-------------------------------------; ;-=Return Entity Angle from 0 to 360=-; ;-------------------------------------; Function Angle360(entity) Local TempYaw TempYaw=EntityYaw(entity) If TempYaw<0 Then TempYaw=TempYaw+360 Return TempYaw End Function |
Comments
None.
Code Archives Forum