GetMyFacingAngle: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc= Returns tye current facing angle of the player in radians.| retval=The facing angle of the NPC.| relfuncs=*SetMyFacingAngle")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Welcome| desc= Returns tye current facing angle of the player in radians.|
{{Welcome| desc= Returns the current facing angle of the player in radians.|
retval=The facing angle of the NPC.|
retvals=The facing angle of the NPC.|
example=<source lang="lua">
local myangle=GetMyFacingAngle();
print("I'm currently facing "+myangle);
</source>|
relfuncs=*[[SetMyFacingAngle]]
relfuncs=*[[SetMyFacingAngle]]
}}

Latest revision as of 14:56, 15 March 2022


Description:
Returns the current facing angle of the player in radians.


Parameters:

NoParams


Return Values:
The facing angle of the NPC.


Example

local myangle=GetMyFacingAngle();
print("I'm currently facing "+myangle);

Related Functions

The following functions may be helpful as they relate to this function in one way or another.