Garry's Mod Wiki

Revision Difference

DAdjustableModelPanel:SetFirstPerson#553628

<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> <args> <arg name="enable" type="boolean">Whether to enable/disable first person controls. See <page>DAdjustableModelPanel:FirstPersonControls</page>.</arg> </args> </function>