ID:265022
 
Code:
mob/var
Enterline=0
turf
line
icon='Race.dmi'
icon_state="line"
density = 0
Enter(O)
var/mob/M = O
if(M.Enterline==0)
M.missionD4=0
M.Enterline=1
M.mission=0
M.money+=90
M.loc=locate(48,47,1)
sleep(10)
M.Enterline=0


Problem description:I am using a system of pixel movement, but having trouble with the command Enter ()
When the player enters the turf, it does not execute the command you want.
Need to hold tight until queacerte turf for the third time.
Anyone know how to solve this??


Enter(mob/M)
Lige wrote:
Try using Entered().
did not work =(
Can you even enter the turf? It looks like you're not calling the parent proc, ..()


Also if there's anything that may possibly move through that turf, you might want to make certain it is a mob crossing through before changing those variables with either:

if(ismob(O))

if(istype(O,/mob/))

if(O.type == /mob/)


I would go with the first or second though.