ID:149954
 
Im having trouble with my code. Im trying to get it to where if you click on a certain turf (lets say myturf), and a certain var = 1 (myvar) it creates another turf (myturf2) where you clicked.

I tried something like this:
mob
var
myvar = 0
turf
myturf2

myturf
Click()
if(usr.myvar == 1)
new/turf/myturf(src.loc)


But it says src.loc is a bad loc.

Thanks in advance

-Rcet
Rcet wrote:
...
But it says src.loc is a bad loc.

turf.loc is always going to be an area, not a specific set of x,y,z coordinates. So to put down a new turf there, you'd actually have to use src as the location of the new turf.

Lummox JR