Creating a temporary turf? in Developer Help
|
|
I was wondering if it was possible to create a turf, let's say 'water', that soon after it's made will be removed and the old turf that was in it's spot is recreated.
I currently have-
Move() for(var/turf/T in get_step(src,src.dir)) var/turf/Water3/D=new(src.loc) D.oldturf=T ..()
|
to look for the turfs
and-
New() spawn(30) new oldturf(src.loc)
|
to recreate the old turf to replace the water. The current variable I'm using to store the turf is-
None of this seems to be working.. any ideas?
|
new oldturf(src.loc)You want
new oldturf(src)In the context of a turf, 'src.loc' means the /area it's inhabiting, so you're actually creating the turf in the bottom-left-most place of the area.