GetCameraForwardVector: Difference between revisions
From Onset Developer Wiki
No edit summary |
Pindrought (talk | contribs) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
-- | -- 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
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
- StartCameraFade
- StopCameraFade
- PlayCameraShake
- StopCameraShake
- SetCameraShakeLocation
- SetCameraShakeRotation
- SetCameraShakeFOV
- GetScreenSize
- SetCameraLocation
- GetCameraLocation
- SetCameraRotation
- GetCameraRotation
- GetCameraForwardVector
- GetCameraRightVector
- GetCameraUpVector
- GetInputAxisValue
- SetCameraViewDistance
- GetCameraViewDistance