ID:263940
 
Code:Multi-Tile Build Code
obj/Build
Satellite
icon = 'Stuff.dmi'
icon_state = "sat."
density = 1
obj
sat.s
icon = 'Stuff.dmi' // Sets the icon
icon_state="sat. s" //Sets the icon_state, the one can be changed to 1,2, or 3
pixel_y=-32 //Makes it 64 pixels above the base mob, you.
sat.w
icon = 'Stuff.dmi' // Sets the icon
icon_state="sat. w" //Sets the icon_state, the one can be changed to 1,2, or 3
pixel_x=-32 //Makes it 64 pixels above the base mob, you.
sat.e
icon = 'Stuff.dmi' // Sets the icon
icon_state="sat. e" //Sets the icon_state, the one can be changed to 1,2, or 3
pixel_x=32 //Makes it 64 pixels above the base mob, you.

mob
verb
Satellite()
set name = "Satellite"
set category = "Build 1"
var/a = new/obj/Build/Satellite(usr.loc)
a:owner = "[src.key]"
src.overlays += /obj/sat.s //Makes the head object an overlay
src.overlays += /obj/sat.w //Makes the head object an overlay
src.overlays += /obj/sat.e //Makes the head object an overlay</b>


Problem description:

That will build my multi tile icon(kinda) after i build it and i move..the overlays come with me..i know all i got to do is change the src in
            src.overlays += /obj/sat.s //Makes the head object an overlay
src.overlays += /obj/sat.w //Makes the head object an overlay
src.overlays += /obj/sat.e //Makes the head object an overlay

to something..but what? I have tried almost anything can anyone help?
    sat.e


You can't have a period in a type name. Remove that.

As for the answer to your question:

            var/a = new/obj/Build/Satellite(usr.loc)


That needs to be changed to var/obj/Build/Satellite/a, and then you can use a.overlays (as well as getting rid of that goddamn colon operator which you should never, ever, ever use).
I'll explain this a shorter way, through a simple code example of a multi-tiled tree.
turf/Big_Tree
New()
..()
var/image/A=image(icon='Tree.dmi',icon_state="Southwest",pixel_y=0,pixel_x=-16)
var/image/B=image(icon='Tree.dmi',icon_state="Southeast",pixel_y=0,pixel_x=16)
var/image/C=image(icon='Tree.dmi',icon_state="Northwest",pixel_y=32,pixel_x=-16)
var/image/D=image(icon='Tree.dmi',icon_state="Northeast",pixel_y=32,pixel_x=16)
overlays.Add(A,B,C,D)

That will create a 4-tiled tree.

You could put similar New() code under your Satellite object and it would become a 4-tiled whatever.