Player.LastHitGroup
From GMod Wiki
Revision as of 21:01, 8 October 2009 by Unrealomega (Talk | contribs)
Function | |
Syntax | Player:LastHitGroup( ) |
Description: | |
Returns the player's HitGroup that was hit last. | |
Returns: | Enum |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.LastHitGroup]Player.LastHitGroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the HitGroup that was struck last for each player. |
---|---|
Used on | |
Code | for k,v in pairs(player.GetAll()) do print( v:GetName(), v:LastHitGroup() ) end |
Output | N/A |
Additional Notes
- These are the enumerations it can return.
SHARED | 0000000000000000 | 00000000000000000 | GENERIC SHARED | 0000000000000001 | 00000000000000001 | HEAD SHARED | 0000000000000002 | 00000000000000010 | CHEST SHARED | 0000000000000003 | 00000000000000011 | STOMACH SHARED | 0000000000000004 | 00000000000000100 | LEFTARM SHARED | 0000000000000005 | 00000000000000101 | RIGHTARM SHARED | 0000000000000006 | 00000000000000110 | LEFTLEG SHARED | 0000000000000007 | 00000000000000111 | RIGHTLEG SHARED | 0000000000000010 | 00000000000001010 | GEAR