refer to this post which has the solution to my problem
http://www.byond.com/developer/forum/?id=743632
thanks ^.^
P.S. This was actually suppose to be in the "Code Problems" subforum
---------------------------------------------------
I'm trying to make it where in my code where when the user steps onto a button, an arrow appears to the right of them to show them that they can exit to a different location from that direction.
here is what I have
mob/var/obj/ArrowEnter = new /obj/ArrowE()
turf/Enters/ArrowEnter
name=""
Entered(mob/M)
M.ArrowEnter = new(locate(M.x-1,M.y,M.z))
Exited(mob/M)
if(M.ArrowEnter) del M.ArrowEnter
obj/ArrowE
icon='Truck.dmi'; icon_state="32"; name=""; density=1
I made a topic with something similar a long while back, but I didn't get an answer I didn't understand what was told to me in the last reply to complete it from what was told to me there.
http://www.byond.com/developer/forum/?id=662279
I got it to work at some point but I forgot and my computer had crashed since then, so I don't have a working completed example, so that's why I'm asking here. >.<
Please help if some1 can.
What you have isn't how I would do it, and it has some redundant stuff that could be removed (no need in what you've shown to initialize ArrowEntere to "new /objArrowE()", and you only need "locate(x-1,y,z)" since the turf will have the same coordinates as M), but still, it should do what you want it to do.
So how is it not working properly?