Garry's Mod Wiki

Revision Difference

util.worldpicker.Start#517967

<function name="Start" parent="util.worldpicker" 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:&#xA;&lt;page&gt;table&lt;/page&gt; tr - &lt;page&gt;TraceResult from the mouse press. tr.Entity will return the entity clicked&lt;/page&gt;</arg>⤶ <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>