GetMouseHitEntity: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetMouseHitEntity()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Exam..."
 
28days (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get entity type and identifier the mouse pointer hits.}}


{{FuncSyntax|GetMouseHitEntity()}}
{{FuncSyntax|GetMouseHitEntity()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns the hit entity type and entity identifier.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local entityType, entityId = GetMouseHitEntity()
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:ClientFunctions}}

Revision as of 17:00, 25 November 2019

GetMouseHitEntity

Type: Function
Context: Client
Introduced: v1.0

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 and entity identifier.

Example

local entityType, entityId = GetMouseHitEntity()

See also

Pak

Game

Colors

Miscellaneous

Time

Player

Camera

Waypoints

Fireworks

Packages

Chat

HUDs

Post-processing

GUI

Ocean

Mouse

Sky / Environment

Network

NPC

Objects

Events

Pickup

Door

Text3D

Sound

Text

Timer

Vehicles

Web UI

Key