Garry's Mod Wiki

Revision Difference

util.worldpicker.Start#529140

<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>⤶ <page>table</page> tr - <page text="TraceResult">Structures/TraceResult</page> from the mouse press. tr.Entity will return the entity clicked</arg>⤶ </args> </function>