Garry's Mod Wiki

Panel:SetWorldClicker

  Panel:SetWorldClicker( boolean enable )

Description

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.

Arguments

1 boolean enable
Whether to enable or disable the feature for this panel.