GetCameraForwardVector: Difference between revisions

From Onset Developer Wiki
No edit summary
 
Line 12: Line 12:
== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
-- code here
-- client
x, y, z = GetCameraForwardVector()
AddPlayerChat("X: " .. x)
AddPlayerChat("Y: " .. y)
AddPlayerChat("Z: " .. z)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{CameraFunctions}}
{{CameraFunctions}}

Latest revision as of 00:02, 15 January 2020

GetCameraForwardVector

Type: Function
Context: Client
Introduced: v1.0

Description

__EDIT_ME__

Syntax

GetCameraForwardVector()

Parameters

  • This function has no parameters.

Return Value

  • __EDIT_ME__

Example

-- client
x, y, z = GetCameraForwardVector()
AddPlayerChat("X: " .. x)
AddPlayerChat("Y: " .. y)
AddPlayerChat("Z: " .. z)

See also