Suggested proc: Collide() in BYOND Discussion
|
|
It would be very helpful to check to see if certain objects enter the same location in cases where Bump() would be inadequate, due to one or both objects being non-dense.
I suggest Collide(), used as below:
obj whoopie_cushion icon='whoopie.dmi' Collide(who) view() << "[who] stepped on a whoopie cushion!"
|
Otherwise it's a little clunky to code things you want to be objects as turfs, so that you can use entered, or do a check each time someone moves, etc.
|
What if you overrode turf.Entered(moving_thing) to call Collide(moving_thing, item_in_turf) for every item in the turf?