Garry's Mod Wiki

Revision Difference

Panel:SetWorldClicker#551018

<function name="SetWorldClicker" parent="Panel" type="classfunc"> <description> This makes it so that when you're hovering over this panel you can `click` on the world. Your viewmodel will aim etc. This is primarily used for the Sandbox context menu. This makes it so that when you're hovering over this panel you can "click" on the world. Your weapon aim (and its viewmodel) will follow the cursor. This is primarily used for the Sandbox context menu. <bug issue="3467">This function doesn't scale with custom FOV specified by <page>GM:CalcView</page> or <page>WEAPON:TranslateFOV</page>.</bug> </description> <realm>Client and Menu</realm> <args> <arg name="enabled" type="boolean"></arg>⤶ <arg name="enable" type="boolean">Whether to enable or disable the feature for this panel.</arg>⤶ </args> </function>