Garry's Mod Wiki

Weapon:DefaultReload

  boolean Weapon:DefaultReload( number act )

Description

Forces the weapon to reload while playing given animation.

Ammo will be reloaded after the animation ends, and it will reload both Weapon:SetClip1 and Weapon:SetClip2 (if used)

Primary attack and secondary attack will be unavailable for the duration of the reload (or until the weapon is switched away from)

This will stop the Weapon:Think function from getting called while the weapon is reloading!

Arguments

1 number with ACT enum act
View model activity (animation) to play. This is usually ACT_VM_RELOAD.

Uses the ACT enum.

Returns

1 boolean
Did reloading actually take place (true) or fail (false), such as when no reload was necessary.