Player.GetCanZoom

From GMod Wiki

Revision as of 14:52, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:GetCanZoom( )
Description:
Check whether the player is allowed to zoom or not.
Returns: Boolean
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetCanZoom]Player.GetCanZoom [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]




Example

DescriptionPrint to the first player whether or not they can zoom.
Used onNewerServer.png
Code
local ply = player.GetByID( 1 )
ply:SetCanZoom( false )
ply:PrintMessage( HUD_PRINTTALK, "Your ability to zoom is " .. tostring( ply:GetCanZoom() ) )
OutputYour ability to zoom is false


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox