ID:155180
 
How do I check the turfs below an object?

I'm using step to move my mob's Object here and there, but it's a problem because I can't seem to call a turf's Entered() proc, so is there an easy way to fix that?

-Thanks
are you overriding Entered()? If you are, remember you have to put ..() in there somewhere so that it operates normally.

Otherwise, to get a turf that it under an object, just use var/turf/t=obj.loc unless the object is being held by a mob, in which case obj.loc will give you the mob holding it.
In response to Bravo1 (#1)
I didn't call the original, thanks. But it still doesn't seem to work correctly, it seems to recognize it but only once. So it doesn't quite fix the problem.

I also read in the DM Ref that Entered is only called through Move() and I'm using step to move the objects, could that be the cause? If so, how could I fix it?
In response to Truseeker (#2)
Well, step() should call Move() on it's own. Are you overriding step() anywhere? Also, if you're moving the object form the mob to the ground or vice versa, you should just use Move() or loc=locate()
In response to Bravo1 (#3)
I'm not overiding the default step (I think.) I'm just calling it. Here's a post with some of my code: http://www.byond.com/developer/forum/?id=789405#789405

That should give you a visual.
In response to Truseeker (#4)
Is the proc causing a loop and crashing at all?
In response to Bravo1 (#5)
I gotta go, but I fixed it. It wasn't crashing, but all worked out. xD

I'll explain later, sorry.