Garry's Mod Wiki

Revision Difference

CSoundPatch:ChangePitch#526666

<function name="ChangePitch" parent="CSoundPatch" type="classfunc"> <description> Adjust the pitch, alias the speed at which the sound is being played. This invokes the <page>GM:EntityEmitSound</page>. <bug>This function will be ignored if the sound isn't playing</bug>⤶ </description> <realm>Shared</realm> <args> <arg name="pitch" type="number">The pitch can range from 0-255.</arg> <arg name="deltaTime" type="number" default="0">The time to fade from previous to the new pitch.</arg> </args> </function>