GetCameraForwardVector: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetPlayerCameraForwardVector()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__..."
 
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|__EDIT_ME__}}


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


{{FuncParameters}}
{{FuncParameters}}
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
-- client
x, y, z = GetCameraForwardVector()
AddPlayerChat("X: " .. x)
AddPlayerChat("Y: " .. y)
AddPlayerChat("Z: " .. z)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{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