Garry's Mod Wiki

Revision Difference

input.SelectWeapon#564736

<function name="SelectWeapon" parent="input" type="libraryfunc"> <description>Switches to the provided weapon on the next CUserCmd generation/CreateMove call. Direct binding to [CInput::MakeWeaponSelection](https://github.com/LestaD/SourceEngine2007/blob/43a5c90a5ada1e69ca044595383be67f40b33c61/se2007/game/client/in_main.cpp#L929-L932).</description> <description>Switches to the provided weapon on the next CUserCmd generation/CreateMove call. Direct binding to [CInput::MakeWeaponSelection](https://github.com/ValveSoftware/source-sdk-2013/blob/39f6dde8fbc238727c020d13b05ecadd31bda4c0/src/game/client/in_main.cpp#L989-L992).</description> <realm>Client</realm> <args> <arg name="weapon" type="Weapon">The weapon entity to switch to.</arg> </args> </function>