How can I make some sort of function where the player can’t change weapons during some action?
No I mean to prevent him from switching, not to switch.
I suggest using it in the swep on Primary attack or something.
local yourtime = 1.5
if tostring( self.Owner:HasWeapon(“weapon_yourwep”) ) and CurTime() < yourtime then
self.Owner:SelectWeapon( “weapon_yourwep” )
yourtime = CurTime() + 1
–code to fire here when charged
Or something like that anyway.
Which can very well be done with either of those.