Skip to content

Latest commit

Β 

History

History
66 lines (55 loc) Β· 3.14 KB

player.md

File metadata and controls

66 lines (55 loc) Β· 3.14 KB

ᐊ Return to docs

πŸ‘©β€πŸ’» Player

πŸ’‚ Authority

These methods bellow can only be called on 🟧 Client

πŸ“ Note

These methods only work on the local player

🦠 Methods

Returns Name Description
WebUI3d2d GetTargetedWebUI3d2d Get the current targeted WebUI3d2d
WebUI3d2d GetCameraFocusedWebUI3d2d Get the current camera focused WebUI3d2d
FocusWebUI3d2dCamera Focus the camera on a WebUI3d2d
UnfocusWebUI3d2dCamera Unfocus the WebUI3d2d camera

GetTargetedWebUI3d2d

Get the current targeted WebUI3d2d

Returns WebUI3d2d, or nil if no WebUI3d2d is targeted

local ret = my_player:GetTargetedWebUI3d2d()

GetCameraFocusedWebUI3d2d

Get the current camera focused WebUI3d2d

Returns WebUI3d2d, or nil if no WebUI3d2d has camera focus

local ret = my_player:GetCameraFocusedWebUI3d2d()

FocusWebUI3d2dCamera

Focus the camera on a WebUI3d2d

my_player:FocusWebUI3d2dCamera(oWebUI, fCameraDist, fClipPlaneDist, iBlendTime)
Type Name Default Description
WebUI3d2d oWebUI The WebUI3d2d to focus the camera on
float fCameraDist Calculated according to the mesh bounds if nil or false The distance from the camera to the WebUI3d2d
float fClipPlaneDist Calculated according to the mesh bounds if nil or false The distance from the camera to the clip plane
integer iBlendTime 500 The time it takes to blend to the new camera position

UnfocusWebUI3d2dCamera

Unfocus the WebUI3d2d camera

my_player:UnfocusWebUI3d2dCamera()