Player.Freeze

From GMod Wiki

Revision as of 11:51, 18 August 2010 by DarKSunrise (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player.Freeze( Boolean state )
Where is this used?
Description:
Stops players moving or firing, keypresses are still called
Returns: nil
Part of Library: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.Freeze]Player.Freeze [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example will freeze all players.
Used onNewerShared.png
Code
for _, ply in ipairs( player.GetAll() ) do
   ply:Freeze( true )
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox