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?
You can't have a period in a type name. Remove that.
As for the answer to your question:
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).