Garry's Mod Wiki

Revision Difference

DAdjustableModelPanel:SetFirstPerson#514251

<function name="SetFirstPerson" parent="DAdjustableModelPanel" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <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 <page>PANEL:OnMousePressed</page> event.⤶ </description>⤶ <realm>Client</realm>⤶ </function>⤶ ⤶ <arg|type=boolean>⤶ <name>enable</name>⤶ <desc>Whether to enable/disable first person controls. See <page>DAdjustableModelPanel:FirstPersonControls</page>.</desc>⤶ ⤶ </arg|type=boolean>