Garry's Mod Wiki

Revision Difference

input.SelectWeapon#511711

<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>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="weapon" type="Weapon">The weapon entity to switch to.</arg>⤶ </args>⤶ </function>⤶ ⤶