ID:269035
 
How would you make a place, say, 10x10 to 20x20 be like the edge of the map? I don't mean be the real edge, but have the affect to where it doesn't scroll anymore.

I know there's a way to do this, but, meh...
edge_limit var (client)


area/house
var/x1,x2,y1,y2
x1=???
x2=???
y1=???
y2=???

Entered(mob/M)
if(ismob(M) && M.client)
M.client.edge_limit = "[x1],[y1] to [x2],[y2]"

Exited(mob/M)
if(ismob(M) && M.client)
M.client.edge_limit = null
In response to Jonathan E
Duh!
Thanks.
In response to Hell Ramen
no problem >.>
In response to Jonathan E
That's nice... I completely forgot about that particular variable...
In response to Ter13
It's actually a pretty recent addition, so you may not have been around when it was introduced, I don't know. *shrug*
In response to Crispy
I think I remember a discussion of it, but I think I just shrugged it off. I think it came with 340, right? When EDGE_PERSPECTIVE came in...
In response to Ter13
Ter13 wrote:
I think I remember a discussion of it, but I think I just shrugged it off. I think it came with 340, right? When EDGE_PERSPECTIVE came in...

Nope, it was a 341 addition. EDGE_PERSPECTIVE came first.

Lummox JR