turf
Grass
icon='Grass.dmi'
mouse_opacity=2
Click()
var/Ref="/obj/Tracks/[usr.Placed]"
var/obj/A=text2path(Ref)
var/obj/O = new A(src)
Problem description:
runtime error: Cannot create objects of type null.
proc name: Click (/turf/Grass/Click)
source file: Tracks.dm,8
usr: National Guardsmen (/mob)
src: Grass (2,7,1) (/turf/Grass)
call stack:
Grass (2,7,1) (/turf/Grass): Click(Grass (2,7,1) (/turf/Grass), "default.map1", "icon-x=26;icon-y=19;left=1;scr...")
I am confused on how I am trying creating a null object, from my understanding text2path converts a text string into a path I can use. But for some reason I keep getting the above runtime error, anyone care to explain to me what im doing wrong?
If you need more assistance, can you give us an example of the value for usr.Placed and the related type path definition?