ID:1513725
 
(See the best response by Kaiochao.)
Code:
walk_rand(src)


Problem description:
Well i'm trying to make an object randomly move around while still bumping into objects, mobs, and turfs. But using walk_rand seems to make it avoid walking into any of those things. I've tried making a loop with step_rand but that seems to also make it avoid the same things. I was wondering if there was a built in function to do what I need it to do. I'm starting to think the way to get around this is the have a proc that has all the directions and just run a loop going threw it picking a random direction but I figure I would ask on here first to see if there is an easier way. thanks.
Best response
You could use a loop with step() in random directions, which is what you ended up considering.

The built-in random movement procs say in their Reference entries that they take obstacles into account when determining the next move.