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

SFEX.render.cursorPos

C๐Ÿท๏ธ Render

Part of StarfallEx namespace

๐Ÿ”— External
render.cursorPos(ply, screen)
View on GitHub|lua/starfall/libs_cl/render.lua:2267
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Gets a 2D cursor position where ply is aiming at the current rendered screen or nil if they aren't aiming at it.

Parameters

NameTypeDescription
ply?Playerplayer to get cursor position from. Default player()
screen?EntityAn explicit screen to get the cursor pos of (default: The current rendering screen using 'render' hook)

Returns

TypeDescription
numberX position or nil if the player is not aiming at the screen
numberY position or nil if the player is not aiming at the screen

Examples

No examples available.

Used In

No usages found in the codebase.