ID:1746112
Dec 24 2014, 2:12 pm
|
|
Will using these two together create a lot of cpu usage? Like if you're within view(1) of an object, you can see all the contents within the cabinet. Is range, bounds, hearers any better to use?
|
Copyright © 2024 BYOND Software.
All rights reserved.
If you're using pixel movement and you want to be within a certain distance in pixels, rather than tiles, from the cabinet, then you should use bounds() or obounds().
Probably the most efficient of these procs is range(), but keep in mind that they all do different things.
If you're going to use range(), but you already have a reference to the object (i.e. you might use cabinet in range(1, src)), you should use get_dist() instead.