Entity.SetBloodColor

From GMod Wiki

Revision as of 23:15, 24 April 2011 by Stebbzor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetBloodColor( Enum Blood Color )
Description:
Changes the effects the entity creates when damaged.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetBloodColor]Entity.SetBloodColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDisable bleeding for all currently spawned zombies.
Used onNewerServer.png
Code
for k,v in pairs(ents.FindByClass("npc_zombie")) do
	v:SetBloodColor(-1)
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