Player.LastHitGroup

From GMod Wiki

Revision as of 21:01, 8 October 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:LastHitGroup( )
Description:
Returns the player's HitGroup that was hit last.
Returns: Enum
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.LastHitGroup]Player.LastHitGroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the HitGroup that was struck last for each player.
Used onNewerServer.png
Code
for k,v in pairs(player.GetAll()) do
	print( v:GetName(), v:LastHitGroup() )
end
OutputN/A


Additional Notes

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
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox