# Set Unit Scale
Grammar — Set u scale to (x%, y%, z%) of its original size
Flags —Native
|Action
Sets a unit’s scale.
# Arguments
unit
— Unitfixed
— Xfixed
— Yfixed
— Z
Returns — void
native void UnitSetScale(
unit inUnit,
fixed x,
fixed y,
fixed z,
);
# Related
Category: Unit / Properties
- [F] —
string
[ gamelink::Unit ] — Unit Type Of Unit — ( UnitGetType ) - [F] —
int
— Unit Tag — ( UnitGetTag ) - [F] —
int
— Unit Seed — ( UnitGetSeed ) - [F] —
void
— Unit Property Changes — ( TriggerAddEventUnitProperty ) - [F] —
int
[ preset::Unit_Property ] — Triggering Unit Property — ( EventUnitProperty ) - [F] —
int
— Triggering Unit Property Change (Integer) — ( EventUnitPropertyChangeInt ) - [F] —
fixed
— Triggering Unit Property Change (Real) — ( EventUnitPropertyChangeFixed ) - [F] —
void
— Set Unit Property — ( UnitSetPropertyFixed ) - [F] —
void
— Set Unit State — ( UnitSetState ) - [F] —
void
— Set Unit Seed — ( UnitSetSeed ) - [F] —
void
— Reset Unit Seed — ( UnitResetSeed ) - [F] —
void
— Make Unit Invulnerable — ( libNtve_gf_MakeUnitInvulnerable ) - [F] —
void
— Make Unit Uncommandable — ( libNtve_gf_MakeUnitUncommandable ) - [F] —
fixed
— Unit Property — ( UnitGetPropertyFixed ) - [F] —
int
— Unit Property (Int) — ( UnitGetPropertyInt ) - [F] —
fixed
— Unit Type Property — ( UnitTypeGetProperty ) - [F] —
bool
— Unit Classification Check — ( UnitTestState ) - [F] —
bool
— Unit Type Classification Check — ( UnitTypeTestFlag ) - [F] —
bool
— Unit Type Attribute Check — ( UnitTypeTestAttribute ) - [F] —
bool
— Unit Targetable Check — ( UnitTestPlane ) - [F] —
bool
— Unit Is Invulnerable — ( libNtve_gf_UnitIsInvulnerable ) - [F] —
int
— Unit Kills — ( libNtve_gf_UnitGetPropertyKills ) - [F] —
int
— Unit Resources — ( libNtve_gf_UnitGetPropertyResources ) - [F] —
point
— Unit Attachment Point — ( UnitGetAttachmentPoint ) - [F] —
text
— Name Of Unit Type — ( UnitTypeGetName ) - [F] —
string
— Gender Code Of Unit Type — ( UnitTypeGetGenderCode ) - [F] —
int
— Unit Type Cost — ( UnitTypeGetCost ) - [F] —
bool
— Unit Type Is Affected By Upgrade — ( UnitTypeIsAffectedByUpgrade ) - [F] —
void
— Reset Movement Speed — ( UnitResetSpeed ) - [F] —
bool
— Unit Uses Mover — ( UnitMoverExists ) - [F] —
bool
— Unit Type Uses Mover — ( libNtve_gf_UnitMoverExists ) - [F] —
string
[ gamelink::Unit ] — Unit Type From String — ( UnitTypeFromString ) - [F] —
void
— Set Unit Color — ( UnitSetTeamColorIndex ) - [F] —
void
— Set Unit Info Button - Ability Tooltip — ( libNtve_gf_SetUnitInfoButtonAbilityTooltip ) - [F] —
void
— Set Unit Info Button - Button Tooltip — ( libNtve_gf_SetUnitInfoButtonButtonTooltip ) - [F] —
void
— Set Unit Info Button - Item Tooltip — ( libNtve_gf_SetUnitInfoButtonItemTooltip ) - [F] —
void
— Reset Unit Info Button - Ability Tooltip — ( libNtve_gf_ResetUnitInfoButtonAbilityTooltip ) - [F] —
void
— Reset Unit Info Button - Button Tooltip — ( libNtve_gf_ResetUnitInfoButtonButtonTooltip ) - [F] —
void
— Reset Unit Info Button - Item Tooltip — ( libNtve_gf_ResetUnitInfoButtonItemTooltip ) - [F] —
void
— Set Unit Command Button Tooltip — ( UnitSetInfoButtonTooltip ) - [F] —
void
— Reset Unit Command Button Tooltip — ( UnitClearInfoButtonTooltip ) - [F] —
void
— Set Unit Highlight Cursor — ( UnitSetCursor ) - [F] —
void
— Set Unit Ping Cursor — ( UnitSetPingCursor ) - [F] —
void
— Set Unit Info — ( UnitSetInfoText ) - [F] —
void
— Set Unit Info Text — ( UnitSetInfoText2 ) - [F] —
void
— Set Unit Info Tip — ( UnitSetInfoTip ) - [F] —
void
— Set Unit Info SubTip — ( UnitSetInfoSubTip ) - [F] —
void
— Clear Unit Info — ( UnitClearInfoText ) - [F] —
void
— Set Unit Status Bar State (Deprecated) — ( UnitForceStatusBar ) - [F] —
void
— Show Unit Status Bar — ( UnitStatusBarOverride ) - [F] —
void
— Hide Unit Status Bar — ( UnitStatusBarClearOverride ) - [F] —
void
— Set Unit Scale — ( UnitSetScale ) - [F] —
void
— Set Unit Model Variation — ( libNtve_gf_UnitSetVariation ) - [F] —
void
— Change Unit Height — ( UnitSetHeight ) - [F] —
fixed
— Height Of Unit — ( UnitGetHeight ) - [F] —
void
— Change Unit Damage — ( libNtve_gf_ChangeUnitDamage ) - [F] —
unit
— Add On Child — ( UnitAddOnChild ) - [F] —
unit
— Add On Parent — ( UnitAddOnParent )
# Examples
# campaigns/liberty.sc2campaign
// L799
UnitSetScale(UnitLastCreated(), gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE)
// L2081
UnitSetScale(autoB51C2030_var, lv_eggScale, lv_eggScale, lv_eggScale)
// L441
UnitSetScale(UnitFromId(4), 115.0, 115.0, 115.0)
// L444
UnitSetScale(gv_dogmeat, 75.0, 75.0, 75.0)
// L1214
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L1218
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L1222
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L8817
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L1413
UnitSetScale(UnitLastCreated(), 77.0, 77.0, 77.0)
// L1418
UnitSetScale(UnitLastCreated(), 133.0, 133.0, 133.0)
// L1566
UnitSetScale(UnitLastCreated(), 77.0, 77.0, 77.0)
// L1572
UnitSetScale(UnitLastCreated(), 133.0, 133.0, 133.0)
// L5778
UnitSetScale(gv_archTemplar01, 120.0, 120.0, 120.0)
// L5813
UnitSetScale(gv_archTemplar02, 120.0, 120.0, 120.0)
// L5848
UnitSetScale(gv_archTemplar03, 120.0, 120.0, 120.0)
// L6075
UnitSetScale(UnitLastCreated(), 150.0, 150.0, 150.0)
// L6078
UnitSetScale(UnitLastCreated(), 150.0, 150.0, 150.0)
// L6081
UnitSetScale(UnitLastCreated(), 150.0, 150.0, 150.0)
// L799
UnitSetScale(UnitLastCreated(), gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE)
// L2081
UnitSetScale(autoB51C2030_var, lv_eggScale, lv_eggScale, lv_eggScale)
// L441
UnitSetScale(UnitFromId(4), 115.0, 115.0, 115.0)
// L444
UnitSetScale(gv_dogmeat, 75.0, 75.0, 75.0)
// L1214
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L1218
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L1222
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L8817
UnitSetScale(UnitLastCreated(), 130.0, 130.0, 130.0)
// L1413
UnitSetScale(UnitLastCreated(), 77.0, 77.0, 77.0)
// L1418
UnitSetScale(UnitLastCreated(), 133.0, 133.0, 133.0)
// L1566
UnitSetScale(UnitLastCreated(), 77.0, 77.0, 77.0)
// L1572
UnitSetScale(UnitLastCreated(), 133.0, 133.0, 133.0)
// L5778
UnitSetScale(gv_archTemplar01, 120.0, 120.0, 120.0)
// L5813
UnitSetScale(gv_archTemplar02, 120.0, 120.0, 120.0)
// L5848
UnitSetScale(gv_archTemplar03, 120.0, 120.0, 120.0)
// L6075
UnitSetScale(UnitLastCreated(), 150.0, 150.0, 150.0)
// L6078
UnitSetScale(UnitLastCreated(), 150.0, 150.0, 150.0)
// L6081
UnitSetScale(UnitLastCreated(), 150.0, 150.0, 150.0)
// L1060
UnitSetScale(autoE69DF61F_var, 130.0, 130.0, 130.0)
// L555
UnitSetScale(UnitLastCreated(), 70.0, 70.0, 70.0)
// L555
UnitSetScale(UnitLastCreated(), 70.0, 70.0, 70.0)
// L1060
UnitSetScale(autoE69DF61F_var, 130.0, 130.0, 130.0)
// L3209
UnitSetScale(UnitLastCreated(), lv_randomScale, lv_randomScale, lv_randomScale)
// L5255
UnitSetScale(UnitLastCreated(), 125.0, 125.0, 125.0)
// L1187
UnitSetScale(libVCST_gf_ClickableUnit("Artanis"), 110.0, 110.0, 110.0)
// L1188
UnitSetScale(libVCST_gf_ClickableUnit("Smith"), 110.0, 110.0, 110.0)
// L1189
UnitSetScale(libVCST_gf_ClickableUnit("TaldarimHero"), 110.0, 110.0, 110.0)
// L1190
UnitSetScale(libVCST_gf_ClickableUnit("DTLeader"), 110.0, 110.0, 110.0)
// L1290
UnitSetScale(libVCST_gf_ClickableUnit("Artanis"), 100.0, 100.0, 100.0)
// L1291
UnitSetScale(libVCST_gf_ClickableUnit("Smith"), 100.0, 100.0, 100.0)
// L1292
UnitSetScale(libVCST_gf_ClickableUnit("TaldarimHero"), 100.0, 100.0, 100.0)
// L1293
UnitSetScale(libVCST_gf_ClickableUnit("DTLeader"), 100.0, 100.0, 100.0)
// L3209
UnitSetScale(UnitLastCreated(), lv_randomScale, lv_randomScale, lv_randomScale)
// L5255
UnitSetScale(UnitLastCreated(), 125.0, 125.0, 125.0)
// L1187
UnitSetScale(libVCST_gf_ClickableUnit("Artanis"), 110.0, 110.0, 110.0)
// L1188
UnitSetScale(libVCST_gf_ClickableUnit("Smith"), 110.0, 110.0, 110.0)
// L1189
UnitSetScale(libVCST_gf_ClickableUnit("TaldarimHero"), 110.0, 110.0, 110.0)
// L1190
UnitSetScale(libVCST_gf_ClickableUnit("DTLeader"), 110.0, 110.0, 110.0)
// L1290
UnitSetScale(libVCST_gf_ClickableUnit("Artanis"), 100.0, 100.0, 100.0)
// L1291
UnitSetScale(libVCST_gf_ClickableUnit("Smith"), 100.0, 100.0, 100.0)
// L1292
UnitSetScale(libVCST_gf_ClickableUnit("TaldarimHero"), 100.0, 100.0, 100.0)
// L1293
UnitSetScale(libVCST_gf_ClickableUnit("DTLeader"), 100.0, 100.0, 100.0)
# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod
// L934
UnitSetScale(libMHtM_gv_mMUnderworldSummonedBoss[lp_team], lv_sizeScale, lv_sizeScale, lv_sizeScale)
// L939
UnitSetScale(libMHtM_gv_mMUnderworldSummonedBoss[lp_team], lv_sizeScale, lv_sizeScale, lv_sizeScale)
// L944
UnitSetScale(libMHtM_gv_mMUnderworldSummonedBoss[lp_team], lv_sizeScale, lv_sizeScale, lv_sizeScale)