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
ID:175084
Jun 15 2003, 3:17 am
|
|
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] |
Not sure if you are suposto use usr or src.