ID:175084
 
I need help. How do I make it so when someone bumps into water their icon switches to a swim one, and when they move the water ripples?

Please help, Thanks
I can help you with number one

turf/water
entered()
usr.icon_state = "Swiming"


Not sure if you are suposto use usr or src.
In response to SSChicken
That would be:

<code>turf/water Entered(mob/M) if(istype(M, /mob)) M.icon_state = "Swimming" src.Ripple() proc/Ripple() icon_state = "Ripple" spawn(10) icon_state = initial(icon_state)</code>

And of course, set the icon_state back on the land turf.

<code>turf/land Entered(mob/M) if(istype(M, /mob)) M.icon_state = "Walking"</code>

[link]