Entity.GetBloodColor

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetBloodColor( )
Description:
Returns the blood color this entity uses.
Returns: Enum Blood Color
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetBloodColor]Entity.GetBloodColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the blood color of the entity you're looking at.
Used onNewerServer.png
Code
concommand.Add("bloodcolor", function(ply)
	tr = ply:GetEyeTrace()
	if tr.Entity then
		print tr.Entity:GetBloodColor()
	end
end)
OutputN/A


Additional Notes

SHARED | 0000000000000000 | 00000000000000000 | BLOOD_COLOR_RED
SHARED | 0000000000000001 | 00000000000000001 | BLOOD_COLOR_YELLOW
SHARED | 0000000000000002 | 00000000000000010 | BLOOD_COLOR_GREEN
SHARED | 0000000000000003 | 00000000000000011 | BLOOD_COLOR_MECH
SHARED | 0000000000000004 | 00000000000000100 | BLOOD_COLOR_ANTLION
SHARED | 0000000000000005 | 00000000000000101 | BLOOD_COLOR_ZOMBIE
SHARED | 0000000000000006 | 00000000000000110 | BLOOD_COLOR_ANTLION_WORKER

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox