ID:264033
 
obj/Build
Satellite
icon = 'Stuff.dmi'
icon_state = "sat."
density = 1
obj/Build_Overlays
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 3"
var/a = new/obj/Build/Satellite(usr.loc)
a:owner = "[src.key]"
a.overlays += /obj/Build_Overlays/sat_s //Makes the head object an overlay
a.overlays += /obj/Build_Overlays/sat_w //Makes the head object an overlay
a.overlays += /obj/Build_Overlays/sat_e //Makes the head object an overlay</b>


Problem description:
It Says that a.overlays is a undefined var and when i put
var/obj/Build/Satellite/a for var/a = new/obj/Build/Satellite(usr.loc) runtime error: Cannot modify null.owner.
proc name: Satellite (/mob/verb/Satellite)
usr: Reno Kujika (/mob)
src: Reno Kujika (/mob)
call stack:
Reno Kujika (/mob): Satellite() pops up in game when i try and build that object...im confused can anyone help me with this?

the problem is here:
var/a = new/obj/Build/Satellite(usr.loc)


overlays is a var which works only for mob/obj/turf/area
so you can't make it work with another var

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

In response to Kisioj
It Works, again thanks
In response to Reno Kujika
no problem ;P
if you know anything about interfaces you can help me there:
http://www.byond.com/developer/forum/?id=638244