Garry's Mod Wiki

Revision Difference

CUserCmd:SetImpulse#528046

<function name="SetImpulse" parent="CUserCmd" type="classfunc"> <description> Sets the impulse command to be sent to the server. ⤶ For example, 101 is an impulse that will give the player all Half-Life 2 weapons with sv_cheats set to 1. Impulse 100 will toggle their flashlight.⤶ ⤶ Here are a few examples of impulse numbers:⤶ - `100` toggles their flashlight⤶ - `101` gives the player all Half-Life 2 weapons with `sv_cheats` set to `1`⤶ - `200` toggles holstering / restoring the current weapon⤶ </description> <realm>Shared</realm> <args> <arg name="speed" type="number">The impulse to send.</arg> </args> </function>