Garry's Mod Wiki

Garry's Mod Wiki

  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.
Function argument(s):
1 table tr - TraceResult from the mouse press. tr.Entity will return the entity clicked

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...