ID:160061
 
Ok wasnt sure where to put this but this seemed right. But im reworking my clothing/hair/equipment right now and wondering if you use an object type or an object for the overlay if that counts towards your object limit. So if I was to do...
src.overlays+=/obj/Hair   //or

var/obj/Hair/H=new
src.overlays+=H

Assuming of course with the second one that i would delete the object when done.

Trying to decrease the amount of objects i use in my game to avoid any trouble as it grows
Overlays don't add to the object limit. They're not really objects, since they're handled internally. Either method is fine.
Both methods produce the same overlay, the 2nd one simply creates a temporary obj that would be automatically deleted after the proc ends anyway (because it isn't the obj itself added to the overlays list, so it is not a reference), so it won't really contribute to the limit.
Since you're not making any customization to the obj before adding it to overlays, you should just use the first method and save handling an object you don't need to.