Garry's Mod Wiki

Revision Difference

Entity:SetColor4Part#547719

<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>⤶ <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>