Player.SprintEnable

From GMod Wiki

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