How would you create a procedure that returns a list that contains all the atomss in the direction specified as far as the range. Here is what the call would be like
range = usr.client.view
direction = SOUTH //or NORTH,EAST,orWEST
for(var/obj/x in atomsindirection(range,direction))
ID:178337
![]() May 26 2002, 12:12 pm
|
|
All you need to do is check for atoms in your view, and use the get_dir proc to check to see if they are in the correct dirction. For example:
That should work fine.