GetMouseHitEntity: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:ClientMouseFunctions}} |
Revision as of 13:57, 27 February 2020
Description
Get entity type and identifier the mouse pointer hits.
Syntax
GetMouseHitEntity()
Parameters
- This function has no parameters.
Return Value
- Returns the hit entity type HitType and entity identifier.
Example
local entityType, entityId = GetMouseHitEntity()