Search object and turfs in oview? in Developer Help
|
|
How would I go about looking for objects and turfs in someones view and creating thunder over that object/turf?
Here's what I got so far: This is just for the object: Water.
var/obj/O=/obj/Water3 for(O in oview(3,src)) var/obj/Thunder/C=new(O.loc) for(var/mob/M in range(0,C)) if(M!=src||M!=src.Ally) src.Electrify(M)
|
|