Entity.SetBloodColor
From GMod Wiki
| Function | |
| Syntax | Entity:SetBloodColor( Enum Blood Color ) | 
| Description: | |
| Changes the effects the entity creates when damaged. | |
| Returns: | nil | 
| In Object: | Entity | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetBloodColor]Entity.SetBloodColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
| Description | Disable bleeding for all currently spawned zombies. | 
|---|---|
| Used on |  | 
| Code | for k,v in pairs(ents.FindByClass("npc_zombie")) do v:SetBloodColor(-1) end | 
| Output | N/A | 
Additional Notes
- Can be used on players.
- The value -1 disables blood.
- Some NPCs like the strider and the hunter have their own blood that can't be overridden with this function. Their default color is -1.
- Setting it to anything else then the enums or -1 will result in a small red blood spray.
- Use these enumerations with the function described on this page to change that entity's blood color.
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
 
			
			