Garry's Mod Wiki

util.worldpicker.Start

util.worldpicker.Start( function callback )

Description

Starts picking an entity in the world. This will suppress the next mouse click, and instead use it as a direction in the trace sent to the callback.

Arguments

1 function callback
Function to call after an entity choice has been made. Argument is: table tr - TraceResult from the mouse press. tr.Entity will return the entity clicked

Page Links


Special Pages


Wikis

?

Render Time: 33ms

Session 0
DB GetPage 5
Generate Html 3
SaveChanges 10
Render Body 0
Render Sidebar 12