Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.hook.CalcView

C๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("CalcView", "name", function(pos, ang, fov, znear, zfar) end)
View on GitHub|lua/starfall/libs_cl/render.lua:406
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Called when the engine wants to calculate the player's view (only works if connected to Starfall HUD)

Parameters

NameTypeDescription
posVectorCurrent position of the camera
angAngleCurrent angles of the camera
fovnumberCurrent fov of the camera
znearnumberCurrent near plane of the camera
zfarnumberCurrent far plane of the camera

Returns

TypeDescription
tableTable containing information for the camera. {origin=camera origin, angles=camera angles, fov=camera fov, znear=znear, zfar=zfar, drawviewer=drawviewer, ortho=ortho table}

Examples

No examples available.

Used In

No usages found in the codebase.