North()
usr.client.eye = loc.x += 15
I'm not very good with doing this type of code but I would like to learn so if can someone please tell me how to do it correctly. That would be great.
ID:271717
Sep 22 2007, 1:07 pm
|
|
How do i make it so that when you look through binoculars you see about 15 spaces forward whichever way you are facing. Would it be something like this.
North() I'm not very good with doing this type of code but I would like to learn so if can someone please tell me how to do it correctly. That would be great. |
There is one major problem with this, though. If you are less than 15 tiles away from the top of the map, your screen will black out, since nothing exists above the top of the map. What you can do is write a proc (or use a library) that doesn't let it step out of bounds. AbyssDragon's BasicMath library (http://developer.byond.com/hub/AbyssDragon/BasicMath) has a get_steps() proc that returns the turf in a given direction in a given amount of tiles.