Garry's Mod Wiki

Revision Difference

DAdjustableModelPanel:SetFirstPerson#516992

<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⤶ {Arg⤶ |type=boolean⤶ |name=enable |desc=Whether to enable/disable first person controls. See <page>DAdjustableModelPanel:FirstPersonControls</page>. }}