Player controls

How would I move a player in a direction when a chat command is given or a timer ends?

What I mean is, are there other ways to do player movement other than having the player execute +forward from console.

**[Gamemode.Move

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.Move)**
**[Gamemode.CreateMove

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.CreateMove)**
**[Gamemode.SetupMove

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.SetupMove)**

One of those?

Will this work in a clientside only script?

Clientside, you can’t move a player except for using their binds

Can’t you with GM.SetupMove?

[lua]hook.Add( “CreateMove”, “MightActuallyWork”, function( cmd )
cmd:SetButtons( cmd:GetButtons() | IN_FORWARD ) --Imitate +forward being pressed
end )[/lua]

Might work, untested. It’s completely clientside and imitates +forward being pressed.

no go. works but does nothing.