ID:1623439
 
(See the best response by Jittai.)
Code:
mob/proc/CostumeSkill(var/obj/Skillcards/S)
MyFlick("[S.Pose][src.icon_state]",src);src.icon_state="[S.Pose][src.icon_state]"
if(S.Sound) PlaySE(view(src),S.Sound)
if(S.AnimPlayer) ShowAnimation(src,S.AnimPlayer)
sleep(S.CostTime)

S.SkillAction()
//wait for end SkillAction() proc

src.inSkill=null
src.UpdateHuds()
spawn(5)
src.ResetIS()


Problem description:

Hi I have trouble with this code.
how to do a proc CostumeSkill()to wait for completion of the SkillAction() proc?

PS:Sorry for my poor English.;/

Best response
It should be doing it already unless you have a spawn() in SkillAction.