ID:144548
 
Well, after checking out my athame object, I threw it and I notice it doesnt move when it hits the bush... the bush is supposed to check if u are a mob, if so return...


Enter(var/a)
if(ismob( a))
return

When making the athame, I did obj/Athame so I got no idea why does it think its a mob...
I'm not sure, but I think the problem is with :
if(ismob( a))

Maybe it will do as you want it to if you use
if(istype(A,/mob))

In response to Dragon_fire6653
Its the same thing, but I tried it anyways (with a instead A) and it didnt work.
In response to Souloron
Fixed, had to replace the Enter(var/a) with Entered(var/a)
In response to Souloron
No no no no no no no no no no, you did not fixed the problem at all.

Entered() is called when the atom successfully ENTERED the atom which has Entered()...

Enter() is called when an atom is TRYING to ENTER the atom which has Enter()

If you bothered to read the DM Reference (F1) for Enter(), you should've noticed what you did wrong:

Returns:
1 to permit; 0 to deny.
When:
Called when an object attempts to enter the contents list.


atom/Enter(O)
if(ismob(O))return 0//does NOT allow mob to enter
//Note you did not placed anything here, so it defaults to 'return null', which means nothing else is permitted
//what you want here is return 1


- GhostAnime
In response to GhostAnime
NVM, I am good =] thx