Garry's Mod Wiki

Revision Difference

Entity:RemoveAllDecals#527926

<function name="RemoveAllDecals" parent="Entity" type="classfunc"> <description>Removes all decals from the entities surface.</description> <realm>Shared</realm> </function> <example> <description>Removes all decals from all props in world.</description> <code> for k, v in pairs( ents.FindByClass( "prop_physics" )) do v:RemoveAllDecals() for i, ent in ipairs( ents.FindByClass( "prop_physics" ) ) do ent:RemoveAllDecals() end </code> </example>