Garry's Mod Wiki

DAdjustableModelPanel:SetFirstPerson

  DAdjustableModelPanel:SetFirstPerson( boolean enable )

Description

Enables mouse and keyboard-based adjustment of the perspective.

This is set to true automatically each time mouse capture is enabled, and hence doesn't serve as a usable setting, other than to disable this functionality after the PANEL:OnMousePressed event.

An AccessorFunc

Arguments

1 boolean enable
Whether to enable/disable first person controls. See DAdjustableModelPanel:FirstPersonControls.