ID:2359603
 
Code:
teleportpad
icon_state=""
density=0
locate(ax,ay,az)
var/obj/new=new/obj
new.loc=(50,100,1)
if(usr.loc(x,y,z)==src.loc(x,y,z))
new.loc=locate(50,100,1)
usr.loc=new.loc


Problem description:
getting an :if: error expected end of statement... Its late.. Im tired.. Help me out fam.. new to the lango..
You're trying to execute code in the definition of the object, that's not going to work. You need to put it in a proc or something of that nature. From the looks if your code, you'd want something like Enter() or Entered().
So instead of using an if proc and obj how would i use entered? Could you use an example?
So if i cut the var line out and use entered () and then the if statement