Player.SprintEnable

From GMod Wiki

Revision as of 13:43, 5 July 2010 by XKillerBoy (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:SprintEnable( )
Description:
Allows the player to sprint.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SprintEnable]Player.SprintEnable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAllows everyone to sprint.
Used onNewerServer.png
Code
for i, ply in pairs(player.GetAll()) do
    if (ply:IsValid()) then
        ply:SprintEnable()
    end
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox