ID:1663054
 
(See the best response by Super Saiyan X.)
Code:
turf/portal
Enter(var/mob/M)
if(M.client)
//then some code to teleport to new place

var/mob/m=new()m.loc=src.loc

//create new mob at location that i appear in.


I know how to do this but for some reason Enter does not like it when i say var/mob/M=new() it glitches out, makes me go through enter twice for some unknown reason and plus it doesnt make a new mob at that location

Problem description:

Best response
the argument for new() takes a location, you don't do it outside of the parenthesis.