ID:140686
 
Code:


Problem description:
What I'm trying to do is make it so that when my char(base) goes on water it changes to a swimming state. What i have so far is

Water
icon_state = "water"
Entered(mob/M)
if(M)
M.icon_state="Swim"
.. ()
But it doesn't seem to work, I tried several other things as well and it still didn't work. If anyone could help me that would be great, thanks :D
I think you may be looking for the flick() proc.
In response to Megelic
Yeah that sort of works, but when i stand still the base gets out of the water.
The if(M) line should be if(ismob(M)), and the ..() should probably be outside the if() statement. Aside from that, there aren't any problems with that code and you aren't giving a description of what's wrong so it's not really possible to help.