ID:147546
 
how do i do this:

PalmTreeTop icon_state = "PalmTreeTop" density = 0 layer = 6 Enter() ..() if(usr.dir == SOUTH) return PalmTreeBottom icon_state = "PalmTreeBottom" density = 0 Enter() ..() if(usr.dir == NORTH) return

if you enter PalmTreeBottom from the top dont allow, if u enter the top from the bottom font allow. it's not working so how do i go about doing it. when i do this it doesnt allow any entering.
[SHAMELESS PLUG]
Gatekeeper
[/SHAMELESS PLUG]

That library will solve most of your problems. In the New() proc of the treetop, use
setDensity("north")
setDensity("east")
setDenisty("west")
setDensity("northeast")
setDensity("northwest")
setDensity("southeast")
setDensity("southwest")


(/me realizes he should have a setAllBut() proc, or at least have setDensity() take a list)
Don't use usr in procs.