# Destroy Portrait

Grammar — Destroy portrait
FlagsNative | Action

Destroys the specified portrait.

# Arguments

  • int [ portrait ] — Portrait

Returns — void

native void PortraitDestroy(int p);

Category: Portrait / Advanced

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L8527
PortraitDestroy(PortraitLastCreated())
// L3319
PortraitDestroy(gv_newItems[lp_newItemIndex].lv_flash)
// L10484
PortraitDestroy(gv_zPlanetPanel_PortraitPlanet)
// L10489
PortraitDestroy(gv_zPlanetPanel_PortraitBorder)
// L13482
PortraitDestroy(gv_briefingPortraits[lv_index])
// L13555
PortraitDestroy(gv_briefing_TZeratulPortraitZeratul)
// L19591
PortraitDestroy(PortraitLastCreated())
// L19620
PortraitDestroy(PortraitLastCreated())
// L26432
PortraitDestroy(gv_bridgeCommunicatorPortraitValerian)
// L29121
PortraitDestroy(lv_portaitMiddle)
// L30023
PortraitDestroy(lv_portaitMiddleHan)
// L7227
PortraitDestroy(gv_victoryCinematicPortrait)
// L6769
PortraitDestroy(gv_victoryPortrait)
// L8527
PortraitDestroy(PortraitLastCreated())
// L3319
PortraitDestroy(gv_newItems[lp_newItemIndex].lv_flash)
// L10484
PortraitDestroy(gv_zPlanetPanel_PortraitPlanet)
// L10489
PortraitDestroy(gv_zPlanetPanel_PortraitBorder)
// L13482
PortraitDestroy(gv_briefingPortraits[lv_index])
// L13555
PortraitDestroy(gv_briefing_TZeratulPortraitZeratul)
// L19591
PortraitDestroy(PortraitLastCreated())
// L19620
PortraitDestroy(PortraitLastCreated())
// L26432
PortraitDestroy(gv_bridgeCommunicatorPortraitValerian)
// L29121
PortraitDestroy(lv_portaitMiddle)
// L30023
PortraitDestroy(lv_portaitMiddleHan)
// L7227
PortraitDestroy(gv_victoryCinematicPortrait)
// L6769
PortraitDestroy(gv_victoryPortrait)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L4039
PortraitDestroy(libNCST_gv_nS_DebugTimeCodePortrait)