ID:264231
 
I need help to make is so when the Ki Blast hits the water it gets an underlay, and the same as it Exit's.


    Entered(O)
if(isturf(O))
if(O == turf/Earth/Terrain/Water)//the path to the water it enters
src.underlays += 'watersplit.dmi'//src is the beam.
Exited(O)
if(isturf(O))
if(O == turf/Earth/Terrain/Water)//the path to the water is enters
src.underlays -= 'watersplit.dmi'//src is the beam.


I added comments into the coding to show what everything means.

Firstly, a type path (/something/which/looks/like/this - you also missed the first / in the path) is not an object - it is sort of like a picture of what the object should look like. So if(O == turf/Earth/Terrain/Water) is kind of like asking whether a house is a picture.
You should use the istype() proc to check whether or not an object is of a certain type, like this:
if(istype(object_to_check,/path/to/check))
In response to Hazman
I think the main problem stems from Entered/Exited being defined on an /obj projectile rather than in the /turf that he wants

[link]