# Unit Type Property
Grammar — u|Unit Type property
Flags —Native
|Function
Returns a unit type property.
# Arguments
string
<gamelink::Unit> — Unitint
<preset::unitFlag2> — Property
Returns — fixed
native fixed UnitTypeGetProperty(
string inUnitType,
int inProp,
);
# Related
Category: Unit / Properties
- Unit Type Of Unit —
string
<gamelink::Unit> — UnitGetType - Unit Tag —
int
— UnitGetTag - Unit Seed —
int
— UnitGetSeed - Unit Property Changes —
void
— TriggerAddEventUnitProperty - Triggering Unit Property —
int
<preset::Unit_Property> — EventUnitProperty - Triggering Unit Property Change (Integer) —
int
— EventUnitPropertyChangeInt - Triggering Unit Property Change (Real) —
fixed
— EventUnitPropertyChangeFixed - Set Unit Property —
void
— UnitSetPropertyFixed - Set Unit State —
void
— UnitSetState - Set Unit Seed —
void
— UnitSetSeed - Reset Unit Seed —
void
— UnitResetSeed - Make Unit Invulnerable —
void
— libNtve_gf_MakeUnitInvulnerable - Make Unit Uncommandable —
void
— libNtve_gf_MakeUnitUncommandable - Unit Property —
fixed
— UnitGetPropertyFixed - Unit Property (Int) —
int
— UnitGetPropertyInt - Unit Type Property —
fixed
— UnitTypeGetProperty - Unit Classification Check —
bool
— UnitTestState - Unit Type Classification Check —
bool
— UnitTypeTestFlag - Unit Type Attribute Check —
bool
— UnitTypeTestAttribute - Unit Targetable Check —
bool
— UnitTestPlane - Unit Is Invulnerable —
bool
— libNtve_gf_UnitIsInvulnerable - Unit Kills —
int
— libNtve_gf_UnitGetPropertyKills - Unit Resources —
int
— libNtve_gf_UnitGetPropertyResources - Unit Attachment Point —
point
— UnitGetAttachmentPoint - Name Of Unit Type —
text
— UnitTypeGetName - Gender Code Of Unit Type —
string
— UnitTypeGetGenderCode - Unit Type Cost —
int
— UnitTypeGetCost - Unit Type Is Affected By Upgrade —
bool
— UnitTypeIsAffectedByUpgrade - Reset Movement Speed —
void
— UnitResetSpeed - Unit Uses Mover —
bool
— UnitMoverExists - Unit Type Uses Mover —
bool
— libNtve_gf_UnitMoverExists - Unit Type From String —
string
<gamelink::Unit> — UnitTypeFromString - Set Unit Color —
void
— UnitSetTeamColorIndex - Set Unit Info Button - Ability Tooltip —
void
— libNtve_gf_SetUnitInfoButtonAbilityTooltip - Set Unit Info Button - Button Tooltip —
void
— libNtve_gf_SetUnitInfoButtonButtonTooltip - Set Unit Info Button - Item Tooltip —
void
— libNtve_gf_SetUnitInfoButtonItemTooltip - Reset Unit Info Button - Ability Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonAbilityTooltip - Reset Unit Info Button - Button Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonButtonTooltip - Reset Unit Info Button - Item Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonItemTooltip - Set Unit Command Button Tooltip —
void
— UnitSetInfoButtonTooltip - Reset Unit Command Button Tooltip —
void
— UnitClearInfoButtonTooltip - Set Unit Highlight Cursor —
void
— UnitSetCursor - Set Unit Ping Cursor —
void
— UnitSetPingCursor - Set Unit Info —
void
— UnitSetInfoText - Set Unit Info Text —
void
— UnitSetInfoText2 - Set Unit Info Tip —
void
— UnitSetInfoTip - Set Unit Info SubTip —
void
— UnitSetInfoSubTip - Clear Unit Info —
void
— UnitClearInfoText - Set Unit Status Bar State (Deprecated) —
void
— UnitForceStatusBar - Show Unit Status Bar —
void
— UnitStatusBarOverride - Hide Unit Status Bar —
void
— UnitStatusBarClearOverride - Set Unit Scale —
void
— UnitSetScale - Set Unit Model Variation —
void
— libNtve_gf_UnitSetVariation - Change Unit Height —
void
— UnitSetHeight - Height Of Unit —
fixed
— UnitGetHeight - Change Unit Damage —
void
— libNtve_gf_ChangeUnitDamage - Add On Child —
unit
— UnitAddOnChild - Add On Parent —
unit
— UnitAddOnParent
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6648
}
}
UnitSetPropertyFixed(lv_plane, c_unitPropMovementSpeed, UnitTypeGetProperty(UnitGetType(lv_plane), c_unitPropMovementSpeed));
Wait(0.3, c_timeGame);
lv_index = 0;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:4522
lv_viking2 = UnitFromId(472);
lv_viking3 = UnitFromId(102);
lv_broodLordDistance = (UnitTypeGetProperty("BroodLord", c_unitPropMovementSpeed) * SoundLengthSync(SoundLink("THanson03BHorner00042", 0)));
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(38), 0.0, -1, 10, true);
libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionFromId(9), "CreepCloud", c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:1923
gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar] = UnitLastCreated();
UnitSetCustomValue(UnitLastCreated(), 0, IntToFixed(lv_initialCustomValue));
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropMovementSpeed, (UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed) * gv_trainList[lv_trainsToSpawn[lv_i]].lv_speedMultiplier));
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropLifeMax, gv_trainList[lv_trainsToSpawn[lv_i]].lv_maxLife);
if ((UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngineFast") && (UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngine")) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:1951
}
Wait(((gv_tRAIN_CAR_SEPERATION + (gv_tRAIN_RADIUS * 2.0)) / (UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed) * gv_trainList[lv_trainsToSpawn[1]].lv_speedMultiplier)), c_timeGame);
if ((lv_trainCarType == "TarsonisEngine")) {
Wait(0.4, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6648
}
}
UnitSetPropertyFixed(lv_plane, c_unitPropMovementSpeed, UnitTypeGetProperty(UnitGetType(lv_plane), c_unitPropMovementSpeed));
Wait(0.3, c_timeGame);
lv_index = 0;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:4522
lv_viking2 = UnitFromId(472);
lv_viking3 = UnitFromId(102);
lv_broodLordDistance = (UnitTypeGetProperty("BroodLord", c_unitPropMovementSpeed) * SoundLengthSync(SoundLink("THanson03BHorner00042", 0)));
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(38), 0.0, -1, 10, true);
libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionFromId(9), "CreepCloud", c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:1923
gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar] = UnitLastCreated();
UnitSetCustomValue(UnitLastCreated(), 0, IntToFixed(lv_initialCustomValue));
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropMovementSpeed, (UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed) * gv_trainList[lv_trainsToSpawn[lv_i]].lv_speedMultiplier));
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropLifeMax, gv_trainList[lv_trainsToSpawn[lv_i]].lv_maxLife);
if ((UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngineFast") && (UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngine")) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:1951
}
Wait(((gv_tRAIN_CAR_SEPERATION + (gv_tRAIN_RADIUS * 2.0)) / (UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed) * gv_trainList[lv_trainsToSpawn[1]].lv_speedMultiplier)), c_timeGame);
if ((lv_trainCarType == "TarsonisEngine")) {
Wait(0.4, c_timeGame);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:409
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:440
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1213
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
libNtve_gf_RescueUnit(UnitGroupLoopCurrent(), gv_pLAYER_01_USER, true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
UnitGroupAdd(gv_mutaliskGroup, UnitGroupLoopCurrent());
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:4101
UnitGroupLoopBegin(gv_viperGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("Viper", c_unitPropHeight), 3.0);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:2143
while (!UnitGroupLoopDone()) {
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false);
UnitSetPropertyFixed(UnitGroupLoopCurrent(), c_unitPropMovementSpeed, UnitTypeGetProperty("HotSTorrasque", c_unitPropMovementSpeed));
UnitSelect(UnitGroupLoopCurrent(), gv_pLAYER_01_USER, true);
UnitGroupLoopStep();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:6068
// Variable Initialization
lv_speed = UnitTypeGetProperty("Zergling", c_unitPropMovementSpeed);
// Actions
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1576
if (lv_indexUnit == null) { break; }
if ((lp_isReaction == true)) {
UnitSetPropertyFixed(lv_indexUnit, c_unitPropMovementSpeed, UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed));
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1579
}
else {
UnitSetPropertyFixed(lv_indexUnit, c_unitPropMovementSpeed, UnitTypeGetProperty("PrimalHydralisk", c_unitPropMovementSpeed));
}
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:4640
lv_indexUnit = UnitGroupUnitFromEnd(autoFE0772A3_g, autoFE0772A3_u);
if (lv_indexUnit == null) { break; }
UnitSetPropertyFixed(lv_indexUnit, c_unitPropMovementSpeed, (UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed) - 0.6));
}
gf_AttachWarningPingToReactionTeam(lv_harvesterIndex);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:6955
libNtve_gf_PauseUnit(autoB43B0464_var, false);
libNtve_gf_RescueUnit(autoB43B0464_var, gv_pLAYER_01_USER, true);
UnitSetHeight(autoB43B0464_var, UnitTypeGetProperty("Mutalisk", c_unitPropHeight), 2.0);
}
Wait(1.5, c_timeGame);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:7085
libNtve_gf_ShowHideUnit(autoCBC38F1D_var, true);
libNtve_gf_PauseUnit(autoCBC38F1D_var, false);
UnitSetHeight(autoCBC38F1D_var, UnitTypeGetProperty("Mutalisk", c_unitPropHeight), 0.0);
UnitSetPropertyFixed(autoCBC38F1D_var, c_unitPropKills, 0.0);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:343
Wait(0.1, c_timeGame);
libNtve_gf_ShowHideUnit(UnitLastCreated(), true);
UnitSetHeight(UnitLastCreated(), UnitTypeGetProperty(UnitGetType(UnitLastCreated()), c_unitPropHeight), 2.0);
Wait(2.0, c_timeGame);
libNtve_gf_PauseUnit(UnitLastCreated(), false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:409
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:440
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:1213
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
libNtve_gf_RescueUnit(UnitGroupLoopCurrent(), gv_pLAYER_01_USER, true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
UnitGroupAdd(gv_mutaliskGroup, UnitGroupLoopCurrent());
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:4101
UnitGroupLoopBegin(gv_viperGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("Viper", c_unitPropHeight), 3.0);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map — MapScript.galaxy:2143
while (!UnitGroupLoopDone()) {
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false);
UnitSetPropertyFixed(UnitGroupLoopCurrent(), c_unitPropMovementSpeed, UnitTypeGetProperty("HotSTorrasque", c_unitPropMovementSpeed));
UnitSelect(UnitGroupLoopCurrent(), gv_pLAYER_01_USER, true);
UnitGroupLoopStep();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2map — MapScript.galaxy:6068
// Variable Initialization
lv_speed = UnitTypeGetProperty("Zergling", c_unitPropMovementSpeed);
// Actions
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1576
if (lv_indexUnit == null) { break; }
if ((lp_isReaction == true)) {
UnitSetPropertyFixed(lv_indexUnit, c_unitPropMovementSpeed, UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed));
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1579
}
else {
UnitSetPropertyFixed(lv_indexUnit, c_unitPropMovementSpeed, UnitTypeGetProperty("PrimalHydralisk", c_unitPropMovementSpeed));
}
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:4640
lv_indexUnit = UnitGroupUnitFromEnd(autoFE0772A3_g, autoFE0772A3_u);
if (lv_indexUnit == null) { break; }
UnitSetPropertyFixed(lv_indexUnit, c_unitPropMovementSpeed, (UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed) - 0.6));
}
gf_AttachWarningPingToReactionTeam(lv_harvesterIndex);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:6955
libNtve_gf_PauseUnit(autoB43B0464_var, false);
libNtve_gf_RescueUnit(autoB43B0464_var, gv_pLAYER_01_USER, true);
UnitSetHeight(autoB43B0464_var, UnitTypeGetProperty("Mutalisk", c_unitPropHeight), 2.0);
}
Wait(1.5, c_timeGame);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:7085
libNtve_gf_ShowHideUnit(autoCBC38F1D_var, true);
libNtve_gf_PauseUnit(autoCBC38F1D_var, false);
UnitSetHeight(autoCBC38F1D_var, UnitTypeGetProperty("Mutalisk", c_unitPropHeight), 0.0);
UnitSetPropertyFixed(autoCBC38F1D_var, c_unitPropKills, 0.0);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:343
Wait(0.1, c_timeGame);
libNtve_gf_ShowHideUnit(UnitLastCreated(), true);
UnitSetHeight(UnitLastCreated(), UnitTypeGetProperty(UnitGetType(UnitLastCreated()), c_unitPropHeight), 2.0);
Wait(2.0, c_timeGame);
libNtve_gf_PauseUnit(UnitLastCreated(), false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:600
UnitSetHeight(lp_pylon, 0.0, 0.0);
libNtve_gf_SendActorMessageToUnit(lp_pylon, "SetTintColor 255,255,255");
UnitSetPropertyFixed(lp_pylon, c_unitPropShieldsRegen, UnitTypeGetProperty(UnitGetType(lp_pylon), c_unitPropShieldsRegen));
UnitSetPropertyFixed(lp_pylon, c_unitPropShieldsPercent, 100.0);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7261
if (auto9B572609_var == null) { break; }
UnitSetState(auto9B572609_var, c_unitStateTargetable, true);
UnitSetPropertyFixed(auto9B572609_var, c_unitPropShieldsRegen, UnitTypeGetProperty(UnitGetType(auto9B572609_var), c_unitPropShieldsRegen));
UnitSetPropertyFixed(auto9B572609_var, c_unitPropShieldsPercent, 100.0);
if ((UnitTypeTestAttribute(UnitGetType(auto9B572609_var), c_unitAttributeStructure) == true)) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:2088
PingDestroy(gv_titanicWarpPrismPing);
UnitCreate(1, "RawSolarite", c_unitCreateIgnorePlacement, 0, lv_triggeringUnitPoint, 270.0);
UnitSetHeight(UnitLastCreated(), UnitTypeGetProperty("WarpPrismGiant", c_unitPropHeight), 0.0);
UnitBehaviorAddPlayer(UnitLastCreated(), "ObjectiveCollectionBeam", gv_pLAYER_01_USER, 1);
Wait(2.0, c_timeGame);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:600
UnitSetHeight(lp_pylon, 0.0, 0.0);
libNtve_gf_SendActorMessageToUnit(lp_pylon, "SetTintColor 255,255,255");
UnitSetPropertyFixed(lp_pylon, c_unitPropShieldsRegen, UnitTypeGetProperty(UnitGetType(lp_pylon), c_unitPropShieldsRegen));
UnitSetPropertyFixed(lp_pylon, c_unitPropShieldsPercent, 100.0);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:7261
if (auto9B572609_var == null) { break; }
UnitSetState(auto9B572609_var, c_unitStateTargetable, true);
UnitSetPropertyFixed(auto9B572609_var, c_unitPropShieldsRegen, UnitTypeGetProperty(UnitGetType(auto9B572609_var), c_unitPropShieldsRegen));
UnitSetPropertyFixed(auto9B572609_var, c_unitPropShieldsPercent, 100.0);
if ((UnitTypeTestAttribute(UnitGetType(auto9B572609_var), c_unitAttributeStructure) == true)) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2map — MapScript.galaxy:2088
PingDestroy(gv_titanicWarpPrismPing);
UnitCreate(1, "RawSolarite", c_unitCreateIgnorePlacement, 0, lv_triggeringUnitPoint, 270.0);
UnitSetHeight(UnitLastCreated(), UnitTypeGetProperty("WarpPrismGiant", c_unitPropHeight), 0.0);
UnitBehaviorAddPlayer(UnitLastCreated(), "ObjectiveCollectionBeam", gv_pLAYER_01_USER, 1);
Wait(2.0, c_timeGame);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1492
UnitSetPosition(lv_dropGroupUnitIter, lp_dropLocation, false);
UnitSetHeight(lv_dropGroupUnitIter, 16.0, 0.0);
UnitSetHeight(lv_dropGroupUnitIter, UnitTypeGetProperty(UnitGetType(lv_dropGroupUnitIter), c_unitPropHeight), 3.0);
}
auto5BC7054E_ae = UnitGroupCount(lp_attackGroup, c_unitCountAlive);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1546
UnitSetPosition(lv_indexAirUnit, lp_dropLocation, false);
UnitSetHeight(lv_indexAirUnit, 16.0, 0.0);
UnitSetHeight(lv_indexAirUnit, UnitTypeGetProperty(UnitGetType(lv_indexAirUnit), c_unitPropHeight), 3.0);
}
UnitGroupAddUnitGroup(lv_groundUnits, UnitGroupFilter(null, c_playerAny, lp_attackGroup, UnitFilter(0, 0, (1 << c_targetFilterAir), 0), 0));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1555
if (lv_indexGroundUnit == null) { break; }
UnitGroupAdd(lv_dropGroup, lv_indexGroundUnit);
lv_dropSupply += MaxF(0.5, UnitTypeGetProperty(UnitGetType(lv_indexGroundUnit), c_unitPropSuppliesUsed));
if (((lv_dropSupply >= 8.0) || (UnitGroupCount(lv_dropGroup, c_unitCountAlive) >= 10))) {
libCOMI_gf_CreateDropPod(libCOMI_ge_DropPodRace_Zerg, libCOMI_gf_CM_NearbyGroundPathablePoint(lp_dropLocation, 0.0, 5.0), lv_dropGroup, false, lp_player);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1809
UnitSetPosition(lv_dropUnit, RegionRandomPoint(RegionCircle(lp_dropLocation, 6.0)), false);
UnitSetHeight(lv_dropUnit, 16.0, 0.0);
UnitSetHeight(lv_dropUnit, UnitTypeGetProperty(UnitGetType(lv_dropUnit), c_unitPropHeight), 3.0);
UnitAbilityEnable(lv_dropUnit, "move", false);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1886
UnitSetPosition(lv_airUnitIter, RegionRandomPoint(RegionCircle(lp_dropLocation, 6.0)), false);
UnitSetHeight(lv_airUnitIter, 16.0, 0.0);
UnitSetHeight(lv_airUnitIter, UnitTypeGetProperty(UnitGetType(lv_airUnitIter), c_unitPropHeight), 3.0);
UnitAbilityEnable(lv_airUnitIter, "move", false);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1896
if (lv_dropUnit == null) { break; }
UnitGroupAdd(lv_dropPodGroup, lv_dropUnit);
lv_dropPodSupply += MaxF(0.5, UnitTypeGetProperty(UnitGetType(lv_dropUnit), c_unitPropSuppliesUsed));
if (((lv_dropPodSupply >= 8.0) || (UnitGroupCount(lv_dropPodGroup, c_unitCountAlive) >= 10))) {
libCOMI_gf_CreateDropPod(libCOMI_ge_DropPodRace_Zerg, libCOMI_gf_CM_NearbyGroundPathablePoint(lp_dropLocation, 0.0, 5.0), lv_dropPodGroup, false, lp_player);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6272
// Variable Initialization
lv_targettiersupplyfallbackindex = 1;
lv_targetunitsupply = UnitTypeGetProperty(lp_unitType, c_unitPropSuppliesUsed);
lv_numberofdevolutiontiers = UserDataInstanceCount("DevolutionTiers");
lv_numberofunittypespertier = UserDataFieldValueCount("DevolutionTiers", "UnitsToDevolveInto");
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:10108
continue;
}
else if ((lv_belowStandardCap == true) && (UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locDehakaPlayer], AbilityCommand("DehakaNydusDestroyerTopBar", 0), c_unitAbilChargeCountLeft) >= lv_c_StandardCapAmount) && (PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesUsed) < FixedToInt((PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesLimit) - UnitTypeGetProperty("DehakaNydusDestroyer", c_unitPropSuppliesUsed))))) {
Wait(10.0, c_timeGame);
if ((UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locDehakaPlayer], AbilityCommand("DehakaNydusDestroyerTopBar", 0), c_unitAbilChargeCountLeft) >= lv_c_StandardCapAmount) && (PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesUsed) < FixedToInt((PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesLimit) - UnitTypeGetProperty("DehakaNydusDestroyer", c_unitPropSuppliesUsed)))) && (libCOMI_gv_cM_DehakaVOWurmStructureAlive == true)) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:10110
else if ((lv_belowStandardCap == true) && (UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locDehakaPlayer], AbilityCommand("DehakaNydusDestroyerTopBar", 0), c_unitAbilChargeCountLeft) >= lv_c_StandardCapAmount) && (PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesUsed) < FixedToInt((PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesLimit) - UnitTypeGetProperty("DehakaNydusDestroyer", c_unitPropSuppliesUsed))))) {
Wait(10.0, c_timeGame);
if ((UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locDehakaPlayer], AbilityCommand("DehakaNydusDestroyerTopBar", 0), c_unitAbilChargeCountLeft) >= lv_c_StandardCapAmount) && (PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesUsed) < FixedToInt((PlayerGetPropertyInt(lv_locDehakaPlayer, c_playerPropSuppliesLimit) - UnitTypeGetProperty("DehakaNydusDestroyer", c_unitPropSuppliesUsed)))) && (libCOMI_gv_cM_DehakaVOWurmStructureAlive == true)) {
lv_belowStandardCap = false;
libCOMI_gf_CM_CommanderVOSend(lv_locDehakaPlayer, SoundLink("DehakaCommander_PrimalWurmReminder", -1), PlayerGroupSingle(lv_locDehakaPlayer));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:14483
// Variable Initialization
lv_unit = EventUnit();
lv_defaultHeight = UnitTypeGetProperty(UnitGetType(lv_unit), c_unitPropHeight);
// Actions
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:505
}
libNtve_gf_CreateUnitsWithDefaultFacing(MaxI(FixedToInt(Ceiling(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed))), 1), "KerriganInfestBroodling", 0, UnitGetOwner(lp_killedUnit), UnitGetPosition(lp_killedUnit));
UnitGroupAddUnitGroup(libCOMU_gv_cT_OnDeathSpawns, UnitLastCreatedGroup());
UnitGroupAddUnitGroup(lv_broodlingGroup, UnitLastCreatedGroup());
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:508
UnitGroupAddUnitGroup(libCOMU_gv_cT_OnDeathSpawns, UnitLastCreatedGroup());
UnitGroupAddUnitGroup(lv_broodlingGroup, UnitLastCreatedGroup());
libCOMU_gv_cT_StatBroodlingsSpawned += MaxI(FixedToInt(Ceiling(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed))), 1);
libCOMU_gf_CT_RegisterSpawnedUnitGroup(UnitLastCreatedGroup());
AISetGroupScriptControlled(lv_broodlingGroup, false);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:528
else {
lv_owner = UnitGetOwner(lp_killedUnit);
libNtve_gf_CreateUnitsWithDefaultFacing(MaxI(FixedToInt(Ceiling(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed))), 1), "InfestedCivilian", c_unitCreateIgnorePlacement, lv_owner, UnitGetPosition(lp_killedUnit));
UnitGroupAddUnitGroup(libCOMU_gv_cT_OnDeathSpawns, UnitLastCreatedGroup());
libCOMU_gf_CT_RegisterSpawnedUnitGroup(UnitLastCreatedGroup());
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:553
UnitCreateEffectPoint(lp_killedUnit, "MutatorDeathAOECP", UnitGetPosition(lp_killedUnit));
if ((UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed) > 2.0)) {
if (((UnitGetType(lp_killedUnit) == "Caboose") || (UnitGetType(lp_killedUnit) == "TarsonisEngineFast") || (UnitGetType(lp_killedUnit) == "TarsonisEngine") || (UnitGetType(lp_killedUnit) == "FreightCar"))) {
lv_aOESpawnArea = 2.0;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:558
}
auto41686782_ae = FixedToInt(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed));
lv_indexAOE = 1;
for ( ; ( (auto41686782_ai >= 0 && lv_indexAOE <= auto41686782_ae) || (auto41686782_ai < 0 && lv_indexAOE >= auto41686782_ae) ) ; lv_indexAOE += auto41686782_ai ) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:597
UnitCreateEffectPoint(lp_killedUnit, "MutatorFireworksMissileCP", lv_noTargetPoint);
}
if ((UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed) >= 2.0)) {
if (((UnitGetType(lp_killedUnit) == "Caboose") || (UnitGetType(lp_killedUnit) == "TarsonisEngineFast") || (UnitGetType(lp_killedUnit) == "TarsonisEngine") || (UnitGetType(lp_killedUnit) == "FreightCar"))) {
lv_aOESpawnArea = 2.0;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:602
}
auto984A027E_ae = FixedToInt(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed));
lv_indexAOE = 1;
for ( ; ( (auto984A027E_ai >= 0 && lv_indexAOE <= auto984A027E_ae) || (auto984A027E_ai < 0 && lv_indexAOE >= auto984A027E_ae) ) ; lv_indexAOE += auto984A027E_ai ) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:664
lv_unitPosition = UnitGetPosition(lp_killedUnit);
if ((UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed) <= 1.0)) {
if (((UnitGetType(lp_killedUnit) == "XelNagaConstruct") || (UnitHasBehavior2(lp_killedUnit, "HybridUnitDummy") == true))) {
PlayerCreateEffectPoint(UnitGetOwner(lp_killedUnit), "MutatorScorchedEarthFireBeamLargeInitialCP", lv_unitPosition);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:673
}
else {
if ((UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed) <= 4.0)) {
PlayerCreateEffectPoint(UnitGetOwner(lp_killedUnit), "MutatorScorchedEarthFireBeamInitialCP", lv_unitPosition);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:700
}
lv_supplyvalue = UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed);
if ((lv_supplyvalue < 1)) {
libCOMU_gv_cT_AvengerWimpCounter += 1;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/Common_ai.galaxy:42
}
int GetFoodMade(string unitId){
return FixedToInt(UnitTypeGetProperty(unitId, c_unitPropSuppliesMade));
}
int GetFoodUsed(string unitId){
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/Common_ai.galaxy:45
}
int GetFoodUsed(string unitId){
return FixedToInt(UnitTypeGetProperty(unitId, c_unitPropSuppliesUsed));
}
int FoodUsed(int player){