Player.StopZooming

From GMod Wiki

Revision as of 11:30, 28 October 2010 by Cube334 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:StopZooming( Boolean bool )
Description:
Stops the player zooming if the argument is true
Returns: nil
In Object: Boolean
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.StopZooming]Player.StopZooming [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionStops the player zooming, if they have +zoom on toggle_zoom
Used onNewerServer.png
Code
 
function SWEP:Think()
      self.Owner:StopZooming(true) // stops them zooming
end
 
OutputStops a player zooming!


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox