Garry's Mod Wiki

Revision Difference

util.worldpicker.Start#529123

<function name="Start" parent="util.worldpicker" type="libraryfunc"> <function name="worldpicker.Start" parent="util" type="libraryfunc"> <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.</description> <realm>Client</realm> <args> <arg name="callback" type="function">Function to call after an entity choice has been made. Argument is: <page>table</page> tr - <page>TraceResult from the mouse press. tr.Entity will return the entity clicked</page></arg> </args> </function>