Garry's Mod Wiki

Revision Difference

Entity:SetColor4Part#551693

<function name="SetColor4Part" parent="Entity" type="classfunc"> <description>Sets the color of an entity. <note>This function overrides Colors set with <page>Entity:SetColor</page></note></description>⤶ <description>Sets the color of an entity without usage of a <page>Global.Color</page> object. ⤶ Used internally to implement <page>Entity:SetColor</page>.⤶ </description>⤶ <realm>Shared</realm> <args> <arg name="r" type="number"></arg> <arg name="g" type="number"></arg> <arg name="b" type="number"></arg> <arg name="a" type="number"></arg> </args> </function> <example> <description>Sets the color of the first player to black</description> <code> Entity(1):SetColor4Part(0, 0, 0, 0) </code> </example>