ID:178136
 
Ive Posted this before but can anyone help meh?I need something to check if a Ball obj enters a net Turf
turf
Net
icon = 'turfs.dmi'
icon_state = "net"
Entered()
if(istype(src,/obj/Ball))
//code here
else
usr.loc=usr.loc
In response to Thief Jack
Thief jack wrote:
turf
Net
icon = 'turfs.dmi'
icon_state = "net"
Entered()
if(istype(src,/obj/Ball))
..()
//code here
else
return 0

I think that's how it should be done, actually.
In response to Garthor
Ahh but your wrong. You checked if the src is a /obj/ball

In the code you presented what's Entered() or the turf is the src.

So you should try something like this.

turf/bah/Entered(obj/O)
if(istype(O,/obj/ball))
well you get the point
In response to Super16
Lol, oops, well, what do you expect for 11:30 at night?