# Actor From Dialog Item
Grammar — Actor for dialogItem
Flags —Native
|Function
Returns the actor for the specified dialog item.
# Arguments
int
<control> — Dialog Item
Returns — actor
native actor ActorFromDialogControl(int p);
# Related
Category: Actor / Utility
- Actor Get Text —
text
— ActorGetText - Actor From Reference —
actor
— ActorRefGet - Actor Scope Get Text —
text
— ActorScopeGetText - Actor From —
actor
— ActorFrom - Actor From Actor —
actor
— ActorFromActor - Actor From Doodad —
actor
— ActorFromDoodad - Actor From Portrait —
actor
— ActorFromPortrait - Actor From Dialog Item —
actor
— ActorFromDialogControl - Actor From Scope —
actor
— ActorFromScope - Actor From Unit —
actor
— libNtve_gf_MainActorofUnit - Actor Scope From —
actorscope
— ActorScopeFrom - Actor Scope From Actor —
actorscope
— ActorScopeFromActor - Actor Scope From Portrait —
actorscope
— ActorScopeFromPortrait - Actor Scope From Dialog Item —
actorscope
— ActorScopeFromDialogControl - Actor Scope From Unit —
actorscope
— ActorScopeFromUnit - Texture Slot Component —
int
— TextureGetSlotComponent - Texture Slot Name —
string
— TextureGetSlotName - Actor Set Reference —
void
— ActorRefSet - Apply Global Texture Group —
void
— ActorTextureGroupApplyGlobal - Remove Global Texture Group —
void
— ActorTextureGroupRemoveGlobal - Push Texture Group —
void
— ActorTextureGroupPush - Pop Texture Group —
void
— ActorTextureGroupPop - Make Actor Face Angle —
void
— libNtve_gf_MakeModelFaceAngle - Play Movie Texture On Unit Actor —
void
— libNtve_gf_PlayMovieTextureOnUnitActor - Stop All Video Textures On Unit —
void
— libNtve_gf_StopAllVideoTexturesOnUnit - Show/Hide Doodads In Region —
void
— libNtve_gf_ShowHideDoodadsInRegion - Actor Add Orient Update —
void
— ActorAddOrientUpdate
# Examples
campaigns/voidstory.sc2campaign — base.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.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:1465
GameTimeOfDaySet(libGAwX_gv_timeOfDayOverrideNewTOD);
GameTimeOfDayPause(true);
ActorSend(ActorFromDialogControl(libGAwX_gv_c_PortraitTimeOfDayFrame), "AnimPlay Cover Cover");
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:1492
GameTimeOfDaySet(libGAwX_gv_timeOfDayOverrideOldTOD);
GameTimeOfDayPause(false);
ActorSend(ActorFromDialogControl(libGAwX_gv_c_PortraitTimeOfDayFrame), "AnimClear Cover");
}