# Set Dialog Item Animation

Grammar — Set dialogItem Animation to animation for players
FlagsAction

Sets a Dialog Item’s Animation. Currently supported for Portraits.

# Arguments

  • int<control> — Dialog Item
  • string<modelanim> — Animation
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemAnimation(
	int lp_dialogItem,
	string lp_animation,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:4951

        if ((PlayerRace(lp_player) == "Prot")) {
            DialogSetVisible(libCOUI_gv_cU_TargetingOverlayDialog[lp_player], lv_uIPlayers, true);
            libNtve_gf_SetDialogItemAnimation(libCOUI_gv_cU_TargetingOverlayPortrait[lp_player], "Birth", lv_uIPlayers);
        }