if(locate(/turf/tilledsoil)in usr.loc)
Problem description: Right there, I'm trying to check if the usr is on the turf 'tilledsoil'. However, it keeps telling me I'm not on the soil. Does anyone know why?
ID:139644
![]() Oct 12 2010, 6:39 pm
|
|
Code:
if(locate(/turf/tilledsoil)in usr.loc) Problem description: Right there, I'm trying to check if the usr is on the turf 'tilledsoil'. However, it keeps telling me I'm not on the soil. Does anyone know why? |
No. Why are you trying to complicate things? You have a variable pointing to the object you are interested in, use it.
|
I'm sorry for not knowing as much coding as you. Do I define the turf first, then check if the user is standing on it?
|
Look up istype()