# Actor From Dialog Item

Grammar — Actor for dialogItem
FlagsNative | Function

Returns the actor for the specified dialog item.

# Arguments

  • int<control> — Dialog Item

Returns — actor

native actor ActorFromDialogControl(int p);

Category: Actor / Utility

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:5096

        DialogSetVisible(libVCUI_gv_pU_TargetingOverlayDialog, PlayerGroupAll(), true);
        DialogSetVisible(libVCUI_gv_pU_TargetingAbilityDialog, PlayerGroupAll(), true);
        libNtve_gf_PlayAnimation(ActorFromDialogControl(libVCUI_gv_pU_TargetingOverlayPortrait), c_animNameDefault, "Birth", 0, 0.0);
        TriggerEnable(libVCUI_gt_PU_TargetingCancelButtonUsed, true);
        libVCUI_gv_pU_TargetingActive = true;

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1465

        GameTimeOfDaySet(libGAwX_gv_timeOfDayOverrideNewTOD);
        GameTimeOfDayPause(true);
        ActorSend(ActorFromDialogControl(libGAwX_gv_c_PortraitTimeOfDayFrame), "AnimPlay Cover Cover");
    }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1492

        GameTimeOfDaySet(libGAwX_gv_timeOfDayOverrideOldTOD);
        GameTimeOfDayPause(false);
        ActorSend(ActorFromDialogControl(libGAwX_gv_c_PortraitTimeOfDayFrame), "AnimClear Cover");
    }