Garry's Mod Wiki


number Weapon:GetActivity()


Returns the sequence enumeration number that the weapon is playing.

This can return inconsistent results between the server and client.

Issue Tracker: 2543


1 number
Current activity, see Enums/ACT. Returns 0 if the weapon doesn't have active sequence.


This will return the ACT_ENUM that is currently active for the weapon.

local wep = Entity(1):GetActiveWeapon() if ( IsValid( wep ) ) then // Makes sure that wep exists print( wep:GetActivity() ) // Prints the sequence number end

Page Links

Special Pages



Render Time: 25ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 6