Locked: flick() appearing at the wrong time in Developer Help
|
|
Code:
obj/Skills/Substitute icon='Test.dmi' icon_state="b" mouse_drag_pointer="b" layer=91 proc Tech(mob/M) set popup_menu = 0 src=M
M.invisibility = 101
var/mob/Clone/MM = new() MM.owner = M MM.icon = M.icon MM.icon_state = M.icon_state MM.overlays += M.overlays.Copy() MM.underlays += M.underlays.Copy() MM.loc = M.loc MM.health = infinite
sleep(55)
flick(/obj/smoke,MM) sleep(3) var/obj/Log/L = new(MM.loc) del(MM)
spawn(30) flick(/obj/smoke,L) sleep(3) del(L)
M.subon = 0 flick(/obj/smoke,M) M.invisibility = 0
|
Problem description:
When the skill is used, flick() goes off at the very start where the clone is created. I don't want this.. I only want it to do that after the sleep is completed. I have no idea why its doing this. flick() is after sleep after-all?
|