ID:158719
![]() Jul 10 2009, 11:16 am
|
|
like. how do i remake a turf (that i put in the map while editing) ingame. the original turf has been deleted by another turf(using a verb). and the fake turf that replaced the original turf only lives for 10sec then the fake turf gets deleted. after that, how do i remake the original turf that has been deleted by that fake turf that lives 10sec?
|
![]() Jul 10 2009, 11:24 am
|
|
Use the forum search next time. I gave a solution in this very recent topic.
|
wat do people usually do ?
something like Grass icon='terrain.dmi' icon_state ="grass" density=0 New() spawn(100) new /turf/terrain/Grass(locate(x,y,z)) or your way ? |
You should be using src instead of locate(x,y,z). They're going to be exactly the same, except one is stupidly roundabout. Similarly, for a mob, src.loc is going to be the same as locate(x,y,z) except in very strange circumstances.
And asking "wat do people usually do ?" [sic] is stupid. The question is what's correct, not what's "usually done". |
Aren't you the OP of the topic I referred to? I gave a solution in there. Pass an argument in New() that contains the old turf's type, then use that to create the old turf.
turf/TemporaryTurf/New(Loc, PreviousType) |