// B is the target...
var/obj/N = new(B.loc)//Place Holder, saving location of where skill landed.
while(I<3)
I++
spawn()new/mob/Traps/Poison (N.loc)
N.x+=1
Problem description: All traps end up at ending B.loc . I believe this is due to loc being a reference.
I've boiled down some more complicated code (in a New(var,var,var,var)). I believe my problem is that BYOND is passing variables by reference, which in turn is moving my traps as the target/object moves.
I'm sure I'm doing something stupid, but is there some way to dynamically pass a location without it being by reference?
Thanks,
Iron
Have you considered using...
I believe having B.loc inside of a new() call is refreshing it by reference. Would you mind trying that for me?