-- -- Autor: BenjamÌn de la Fuente Ranea -- Fecha: 28-11-2008 -- -- Script de carga inicial -- Sound.PlaySound(g_ActionButtonSound) execute("menu/cupBack_execute.lua") ClearActorAnims("Background", true, true) SetActorAnim("Background", { anim = "garage/cup" .. CupSelected .. "_fade_in.anm", loop = false, }) SetHScroll("") ClearActorAnims("MenuScroll", true, true) SetActorAnim("MenuScroll", { anim = "menu/cup_scroll_back" .. CupSelected .. ".anm", loop = false, }) if(not g_backMenu) then if(not ExistsActor("Fade")) then CreateActor("ActorGeom", { name = "Fade", model = "menu/fade_to_black.mesh", layer = LF_PANELS+4 }) end SetActorAnim('Fade', { anim = 'menu/fade_black_from_0_to_1_15f.anm', loop = false, }) end --will put the out anim to the current doll and then destroy the dolls with a enqueue on Fade rather than "Doll-whatever" --No estoy poniendo niguna anm en este metodo porque aqui queda mejor asi... DollStates.destroySync('Fade') SetActorAnim("Menu", "menu/cup_back.anm", false, "") EnqueueExecuteScript("Menu", "cupBack()")