GM/SetPlayerSpeed

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Undo revision 12863 by Dane (talk))
(Added warning)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Hook
 
{{Hook
 +
|Description=Sets player run and sprint speeds.
 +
 +
{{Warning|This is not a hook. Treat this as a utility function to set the player's speed.}}
 +
|Realm=Shared
 +
|Predicted=No
 +
|HidePredictionWarning=No
 
|Name=SetPlayerSpeed
 
|Name=SetPlayerSpeed
 
|Parent=GM
 
|Parent=GM
|Description=Sets player run and sprint speeds
 
|Realm=Shared
 
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=Player
 
|type=Player
 
|name=ply
 
|name=ply
|desc=The player
+
|desc=The player to set the speed of.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
|name=runSpeed
+
|name=walkSpeed
|desc=The run speed
+
|desc=The walk speed.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
|name=sprintSpeed
+
|name=runSpeed
|desc=The sprint speed
+
|desc=The run speed.
 
}}
 
}}

Latest revision as of 19:28, 14 August 2018

 GM:SetPlayerSpeed( )

Contents

Description

Sets player run and sprint speeds.

WARNING

This is not a hook. Treat this as a utility function to set the player's speed.

Arguments

Player ply

The player to set the speed of.

Arguments

number walkSpeed

The walk speed.

Arguments

number runSpeed

The run speed.
Personal tools
Navigation