I'm asking if it could be possible to add a new argument to animate that calls a certain proc after the end of the animation. Using it would look somewhat like that then:
mob/player/proc
Teleport(var/x as num, var/y as num, var/z as num)
src.transition=new
src.client.screen+=transition
animate(src.transition,alpha=0,time=5,execute=src.DeleteFadeIn)
src.loc="[x],[y],[z]"
DeleteFadeIn()
src.client.screen-=transition
This would help greatly with timing certain events with animations and animations among themselves. Currently, to time it right, I usually use a lot of sleep(time of animation) and it would be cool to circumvent the use thereof altogether. Whether this is realizable or not, no idea.
and this is how it's currently done:
Is that right?