util.worldpicker.Start

From Garry's Mod
Jump to: navigation, search
 util.worldpicker.Start( )

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

function callback

Function to call after an entity choice has been made. Argument is:

table tr - TraceResult structure from the mouse press. tr.Entity will return the entity clicked
Personal tools
Navigation