Alright so I put
obj/Enter(var/mob/M as mob)
if(M)
return 0
this is doing absolutely nothing, and I have no clue why. No where else in any of my code files do I edit the Enter() proc on an object (found this out with Find function in dream maker).
Could it be because I edited Move? It still allows me to walk through objects... and I can't find anywhere where I might have changed the density of objects in the world...
Perhaps what are some things that might cause Enter to not work?
ID:268235
May 3 2004, 12:50 pm (Edited on May 3 2004, 1:08 pm)
|
|
In response to Volte
|
|
because I want to beable to check if the owner variable is the same as the objects owner variable, so that only the "owner" can enter and leave through the object.
I guess I shouldn't have made them objects, but turfs instead... |
In response to Jon Snow
|
|
Jon Snow wrote:
because I want to beable to check if the owner variable is the same as the objects owner variable, so that only the "owner" can enter and leave through the object. Yeah, the best way to handle this would be through turfs. If you are really stuck on wanting objects, you can check for the objects through mob/Move(). Just pass a location variable through Move(), and check the location for that object. mob/Move(NewLocation) ~>Volte |
In response to Volte
|
|
Or, a better method:
atom/movable Then, just modify stepOn(). |
This is because when you walk on top of an object, it does not call the object's Enter(). Enter() is called when something enters something's contents. When you walk on top of a turf, you are put in it's contents, so it calls Enter(). Why not just make the object's density set to 1?
~>Volte