GetCameraForwardVector: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|__EDIT_ME__}}


{{FuncSyntax|GetPlayerCameraForwardVector()}}
{{FuncSyntax|GetCameraForwardVector()}}


{{FuncParameters}}
{{FuncParameters}}
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