# Set Unit Custom Value
Grammar — Set u custom value index to val
Flags —Native
|Action
Sets a unit’s custom value. This is an arbitrary property that can be recalled using “Custom Value Of Unit”.
# Arguments
unit
— Unitint
— Indexfixed
— Value
Returns — void
native void UnitSetCustomValue(
unit inUnit,
int inIndex,
fixed inVal,
);
# Related
Category: Unit / Basic
- Unit Show Kill Display —
void
— UnitShowKillDisplay - Unit Can Path To Point —
bool
— UnitPathableToPoint - Unit Can Path To Unit —
bool
— UnitPathableToUnit - Create Units With Default Facing —
void
— libNtve_gf_CreateUnitsWithDefaultFacing - Create Units With Point Facing —
void
— libNtve_gf_CreateUnitsAtPoint2 - Create Units Facing Angle —
unitgroup
— UnitCreate - Create Units Facing Point —
unitgroup
— libNtve_gf_UnitCreateFacingPoint - Last Created Unit —
unit
— UnitLastCreated - Last Created Units —
unitgroup
— UnitLastCreatedGroup - Original Caster Of Unit —
unit
— UnitGetOriginalCaster - Effect That Created Unit —
string
<gamelink::Effect> — UnitGetOriginalEffect - Replace Unit —
void
— libNtve_gf_ReplaceUnit - Last Replaced Unit —
unit
— libNtve_gf_LastReplacedUnit - Change Owner —
void
— UnitSetOwner - Unit Owner Changes —
void
— TriggerAddEventUnitChangeOwner - Old Unit Owner —
int
— EventUnitOwnerOld - New Unit Owner —
int
— EventUnitOwnerNew - Rescue Unit —
void
— libNtve_gf_RescueUnit - Rescue Unit Group —
void
— libNtve_gf_RescueUnit2 - Kill Unit —
void
— UnitKill - Revive Unit —
void
— UnitRevive - Remove Unit —
void
— UnitRemove - Owner Of Unit —
int
— UnitGetOwner - Unit Is Alive —
bool
— UnitIsAlive - Unit Is Valid —
bool
— UnitIsValid - Unit Group Is Dead —
bool
— libNtve_gf_UnitGroupIsDead - Move Unit Instantly —
void
— UnitSetPosition - Make Unit Face Angle —
void
— UnitSetFacing - Make Unit Face Point —
void
— libNtve_gf_MakeUnitFacePoint - Position Of Unit —
point
— UnitGetPosition - Goal Position Of Unit —
point
— UnitGetGoalPosition - Facing Angle Of Unit —
fixed
— UnitGetFacing - Pause/Unpause Unit —
void
— libNtve_gf_PauseUnit - Pause/Unpause All Units —
void
— UnitPauseAll - Sleep/WakeUp Unit —
void
— libNtve_gf_SleepUnit - Show/Hide Unit —
void
— libNtve_gf_ShowHideUnit - Share Vision of Unit —
void
— libNtve_gf_ShareVisionofUnit - Unit Is Paused —
bool
— libNtve_gf_UnitIsPaused - Unit Is Sleepiing —
bool
— libNtve_gf_UnitIsSleepiing - Unit Is Hidden —
bool
— libNtve_gf_UnitIsHidden - Unit Is Visible To Player —
bool
— libNtve_gf_UnitIsVisibleToPlayer - Set Unit Custom Value —
void
— UnitSetCustomValue - Custom Value Of Unit —
fixed
— UnitGetCustomValue - Unit Enters/Leaves Region —
void
— TriggerAddEventUnitRegion - Triggering Region —
region
— EventUnitRegion - Unit Enters/Leaves Point —
void
— TriggerAddEventUnitRangePoint - Unit Enters/Leaves Range Of Unit —
void
— TriggerAddEventUnitRange - Triggering Range Unit —
unit
— EventUnitRangeUnit - Unit In Region —
bool
— libNtve_gf_UnitInRegion - Triggering Unit —
unit
— EventUnit - Load Unit Model —
void
— UnitLoadModel - Unload Unit Model —
void
— UnitUnloadModel - Agent Of Player For Unit —
unit
— UnitAgent - Change Empty Unit Variables In Events —
void
— UnitEventSetNullVariableInvalid - Name of Unit —
text
— UnitGetName - Ideal Harvester Count —
int
— UnitIdealWorkerCount - Current Harvester Count —
int
— UnitCurrentWorkerCount
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6349
}
if ((lv_time > lv_waitingTime)) {
UnitSetCustomValue(lv_plane, 0, 1.0);
lv_posCurrent = PointWithOffset(lv_posCurrent, 0.0, -0.1);
UnitSetPosition(lv_plane, lv_posCurrent, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2233
auto2248E752_var = UnitGroupUnitFromEnd(auto2248E752_g, auto2248E752_u);
if (auto2248E752_var == null) { break; }
UnitSetCustomValue(auto2248E752_var, 0, 21.0);
UnitGroupAdd(gv_colonistsOnTheMove, auto2248E752_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2241
autoF40515E8_var = UnitGroupUnitFromEnd(autoF40515E8_g, autoF40515E8_u);
if (autoF40515E8_var == null) { break; }
UnitSetCustomValue(autoF40515E8_var, 0, 21.0);
UnitGroupAdd(gv_colonistsOnTheMove, autoF40515E8_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2249
auto8267D447_var = UnitGroupUnitFromEnd(auto8267D447_g, auto8267D447_u);
if (auto8267D447_var == null) { break; }
UnitSetCustomValue(auto8267D447_var, 0, 21.0);
UnitGroupAdd(gv_colonistsOnTheMove, auto8267D447_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2257
autoE2AC6924_var = UnitGroupUnitFromEnd(autoE2AC6924_g, autoE2AC6924_u);
if (autoE2AC6924_var == null) { break; }
UnitSetCustomValue(autoE2AC6924_var, 0, 21.0);
UnitGroupAdd(gv_colonistsOnTheMove, autoE2AC6924_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2500
if ((DistanceBetweenPoints(UnitGetPosition(lv_pickedUnit), gv_escortRouteRallyPoints[lv_customIntValueOfUnit]) <= 1.5)) {
UnitIssueOrder(lv_pickedUnit, OrderTargetingPoint(AbilityCommand("move", 0), gv_escortRouteRallyPoints[(lv_customIntValueOfUnit - 1)]), c_orderQueueReplace);
UnitSetCustomValue(lv_pickedUnit, 0, IntToFixed((lv_customIntValueOfUnit - 1)));
if ((lv_pickedUnit == gv_tHEONETRUCK)) {
auto3EDA1359_g = UnitCargoGroup(gv_tHEONETRUCK);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2507
auto3EDA1359_var = UnitGroupUnitFromEnd(auto3EDA1359_g, auto3EDA1359_u);
if (auto3EDA1359_var == null) { break; }
UnitSetCustomValue(lv_pickedUnit, 0, IntToFixed((lv_customIntValueOfUnit - 1)));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3724
}
UnitSetCustomValue(EventUnit(), 0, 0.0);
if ((UnitGetType(EventUnit()) == "ColonistTransport")) {
autoE914C699_g = UnitCargoGroup(EventUnit());
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3731
autoE914C699_var = UnitGroupUnitFromEnd(autoE914C699_g, autoE914C699_u);
if (autoE914C699_var == null) { break; }
UnitSetCustomValue(autoE914C699_var, 0, 0.0);
}
lv_anglebetweentruckship = (AngleBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(gv_activeCivilianShip)) + 180.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3736
UnitIssueOrder(EventUnit(), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("Rally", 0), UnitGetPosition(gv_activeCivilianShip)), c_orderQueueAddToEnd);
UnitSetCustomValue(EventUnit(), 0, 100.0);
UnitSetFacing(EventUnit(), lv_anglebetweentruckship, 1.5);
Wait(1.75, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3749
libNtve_gf_SendActorMessageToUnit(gv_tHEONETRUCK, "AnimBracketStop Work");
Wait(1.75, c_timeGame);
UnitSetCustomValue(EventUnit(), 0, 0.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:332
if ((UnitIsAlive(lp_attackedStructure) == true)) {
UnitSetCustomValue(lp_attackedStructure, 0, gv_nightDefenderCooldown);
gv_nightDefenderPingUnit = lp_attackedStructure;
TriggerExecute(gt_NightDefenderPing, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1456
}
UnitSetCustomValue(EventUnit(), 0, (UnitGetCustomValue(EventUnit(), 0) + 1.0));
if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
if ((UnitGroupHasUnit(gv_infestorAggressionInhibitor, EventUnit()) == false)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1836
autoE55A534E_var = UnitGroupUnitFromEnd(autoE55A534E_g, autoE55A534E_u);
if (autoE55A534E_var == null) { break; }
UnitSetCustomValue(autoE55A534E_var, 2, IntToFixed(lv_i));
libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(gv_pLAYER_01_USER), "PingWarning", UnitGetPosition(autoE55A534E_var), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
PingSetScale(PingLastCreated(), 0.75);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:2007
for ( ; ( (auto2338D377_ai >= 0 && lv_index <= auto2338D377_ae) || (auto2338D377_ai < 0 && lv_index >= auto2338D377_ae) ) ; lv_index += auto2338D377_ai ) {
if ((UnitGetCustomValue(gv_infestableStructure[lv_index], 0) != 0.0)) {
UnitSetCustomValue(gv_infestableStructure[lv_index], 0, (UnitGetCustomValue(gv_infestableStructure[lv_index], 0) - 1.0));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2845
AISetUnitScriptControlled(EventUnitProgressUnit(), true);
UnitSetOwner(EventUnitProgressUnit(), gv_pLAYER06_TERRORFLEET, true);
UnitSetCustomValue(EventUnitProgressUnit(), 1, 1.0);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2853
UnitMagazineArm(EventUnitProgressUnit(), AbilityCommand("CarrierHangar", 0), libNtve_gf_DifficultyValueInt(0, 0, 2, 4));
UnitIssueOrder(EventUnitProgressUnit(), OrderSetAutoCast(AbilityCommand("CarrierHangar", 0), true), c_orderQueueReplace);
UnitSetCustomValue(EventUnitProgressUnit(), 1, 1.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:362
gv_infestationVirophageSpot[lp_colonyIndex] = UnitGetPosition(gv_infestationVirophageUnit[lp_colonyIndex]);
gv_infestationColonyLost[lp_colonyIndex] = true;
UnitSetCustomValue(gv_infestationVirophageUnit[lp_colonyIndex], 1, IntToFixed(lp_colonyIndex));
UnitSetInfoText(gv_infestationVirophageUnit[lp_colonyIndex], StringToText(""), StringExternal("Param/Value/8ABD065E"), StringExternal("Param/Value/E1028619"));
UnitSetState(gv_infestationVirophageUnit[lp_colonyIndex], c_unitStateTooltipable, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:632
UnitCargoCreate(lv_overlord, "Drone", 1);
UnitSetCustomValue(UnitCargoLastCreated(), 1, IntToFixed(lp_colonyIndex));
lv_drone = UnitCargoLastCreated();
gf_DropCargoAndWait(lv_overlord, lv_drone, 2.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:796
// Implementation
libNtve_gf_CreateUnitsWithDefaultFacing(1, gv_eGG_UNIT, 0, gv_p07_ZERG_INFESTED, lp_spawnLoc);
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggType), IntToFixed((lp_type)));
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggScale), gv_eGG_SIZE_BASE);
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggColony), IntToFixed(lp_colonyIndex));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:797
libNtve_gf_CreateUnitsWithDefaultFacing(1, gv_eGG_UNIT, 0, gv_p07_ZERG_INFESTED, lp_spawnLoc);
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggType), IntToFixed((lp_type)));
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggScale), gv_eGG_SIZE_BASE);
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggColony), IntToFixed(lp_colonyIndex));
UnitSetScale(UnitLastCreated(), gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:798
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggType), IntToFixed((lp_type)));
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggScale), gv_eGG_SIZE_BASE);
UnitSetCustomValue(UnitLastCreated(), (ge_UnitData_udEggColony), IntToFixed(lp_colonyIndex));
UnitSetScale(UnitLastCreated(), gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE, gv_eGG_SIZE_BASE);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1510
lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnit(), 1));
gv_infestationVirophageUnit[lv_colonyIndex] = EventUnitProgressUnit();
UnitSetCustomValue(gv_infestationVirophageUnit[lv_colonyIndex], 1, IntToFixed(lv_colonyIndex));
UnitForceStatusBar(EventUnitProgressUnit(), true);
UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/55694EB6"), StringExternal("Param/Value/A5396465"));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2080
else {
lv_eggScale += gv_eggData[lv_eggType].lv_scaleInc;
UnitSetCustomValue(autoB51C2030_var, (ge_UnitData_udEggScale), lv_eggScale);
UnitSetScale(autoB51C2030_var, lv_eggScale, lv_eggScale, lv_eggScale);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:571
lv_currentTarget = (lp_pathIndex + 1);
libNtve_gf_CreateUnitsAtPoint2(1, "TarsonisEngine", 0, gv_pLAYER_06_TRAIN, lv_currentPoint);
UnitSetCustomValue(UnitLastCreated(), 0, IntToFixed(lv_currentTarget));
auto46B67D1A_ae = lp_numberOfCars;
lv_i = 2;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:600
libNtve_gf_CreateUnitsAtPoint2(1, "FreightCar", 0, gv_pLAYER_06_TRAIN, lv_currentPoint);
}
UnitSetCustomValue(UnitLastCreated(), 0, IntToFixed(lv_currentTarget));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:1922
libNtve_gf_CreateUnitsAtPoint2(1, lv_trainCarType, 0, gv_pLAYER_06_TRAIN, lv_spawnLocation);
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);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2150
if ((RegionContainsPoint(RegionCircle(gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))], 0.5), UnitGetPosition(auto499A4BF2_var)) == true)) {
if ((FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0)) < 255)) {
UnitSetCustomValue(auto499A4BF2_var, 0, (UnitGetCustomValue(auto499A4BF2_var, 0) + 1.0));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:3297
if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto5F63F107_var), 3.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
if ((UnitGetCustomValue(auto5F63F107_var, 0) < 1.0)) {
UnitSetCustomValue(auto5F63F107_var, 0, 2.0);
gf_RescueDiamondback(auto5F63F107_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1218
}
UnitSetCustomValue(UnitFromId(2), 1, UnitGetPropertyFixed(UnitFromId(2), c_unitPropLifeMax, c_unitPropNormal));
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4412
}
UnitSetCustomValue(EventUnit(), 1, UnitGetPropertyFixed(EventUnit(), c_unitPropLife, c_unitPropCurrent));
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5739
lv_door = UnitFromId(341);
UnitSetCustomValue(lv_door, 0, (UnitGetCustomValue(lv_door, 0) + 1.0));
auto92EDC9A6_val = UnitGetCustomValue(lv_door, 0);
if (auto92EDC9A6_val == 2.0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1081
autoB474868C_var = UnitGroupUnitFromEnd(autoB474868C_g, autoB474868C_u);
if (autoB474868C_var == null) { break; }
UnitSetCustomValue(autoB474868C_var, 1, 99.0);
}
autoA6654341_g = gv_destructibleObjectsCiv;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1088
autoA6654341_var = UnitGroupUnitFromEnd(autoA6654341_g, autoA6654341_u);
if (autoA6654341_var == null) { break; }
UnitSetCustomValue(autoA6654341_var, 1, 99.0);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1363
if (autoC0A4CB95_var == null) { break; }
if ((UnitGetCustomValue(autoC0A4CB95_var, 0) == 0.0)) {
UnitSetCustomValue(autoC0A4CB95_var, 0, 99.0);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoC0A4CB95_var), c_animNameDefault, "Fidget Inferior End", 0, c_animTimeDefault);
UnitBehaviorAdd(autoC0A4CB95_var, "Run", autoC0A4CB95_var, 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1449
if (auto257BD5B4_val == 1) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "CruiserBike", 0, gv_p06_CIVILIANS, PointFromId(245));
UnitSetCustomValue(UnitLastCreated(), 1, 99.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(308)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(469)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1459
else if (auto257BD5B4_val == 2) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "TerranBuggy", 0, gv_p06_CIVILIANS, PointFromId(245));
UnitSetCustomValue(UnitLastCreated(), 1, 99.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(308)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(469)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1469
else if (auto257BD5B4_val == 3) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "CargoTruckUnitBarrels", 0, gv_p06_CIVILIANS, PointFromId(245));
UnitSetCustomValue(UnitLastCreated(), 1, 99.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(308)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(469)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1479
else if (auto257BD5B4_val == 4) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "CargoTruckUnitTrailer", 0, gv_p06_CIVILIANS, PointFromId(245));
UnitSetCustomValue(UnitLastCreated(), 1, 99.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(308)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(469)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1489
else if (auto257BD5B4_val == 5) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "CargoTruckUnitFlatbed", 0, gv_p06_CIVILIANS, PointFromId(245));
UnitSetCustomValue(UnitLastCreated(), 1, 99.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(308)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(469)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1499
else if (auto257BD5B4_val == 6) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "ColonistVehicleUnit", 0, gv_p06_CIVILIANS, PointFromId(245));
UnitSetCustomValue(UnitLastCreated(), 1, 99.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(308)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(469)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1509
else if (auto257BD5B4_val == 7) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "CivilianCarsUnit", 0, gv_p06_CIVILIANS, PointFromId(245));
UnitSetCustomValue(UnitLastCreated(), 1, 99.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(308)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(469)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2555
if ((UnitGroupHasUnit(gv_scientistsGroup, lv_indexUnit) == true) && (UnitGetCustomValue(lv_indexUnit, 0) == 0.0)) {
lv_scientist = lv_indexUnit;
UnitSetCustomValue(lv_scientist, 0, 1.0);
if ((lv_scientist == EventUnit())) {
lv_angle = AngleBetweenPoints(UnitGetPosition(EventUnitDamageSourceUnit()), UnitGetPosition(lv_scientist));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2615
lv_intruderGroup = UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_scientist), 4.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
if ((UnitGroupCount(lv_intruderGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_intruderGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2671
lv_brutaliskGroup = UnitGroup(null, gv_p11_BRUTALISK, RegionCircle(UnitGetPosition(lv_scientist), 5.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
if ((UnitGroupCount(lv_brutaliskGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_brutaliskGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2727
lv_hybridGroup = UnitGroup(null, gv_p04_HYBRID, RegionCircle(UnitGetPosition(lv_scientist), 6.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
if ((UnitGroupCount(lv_hybridGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_hybridGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2775
libNtve_gf_SendActorMessageToUnit(lv_scientist, "AnimBracketStop Scared");
Wait(1.0, c_timeReal);
UnitSetCustomValue(lv_scientist, 0, 0.0);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:9754
lv_player = UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_egg), 1.5), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
if ((UnitGroupCount(lv_player, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_egg, 0, 1.0);
UnitKill(lv_egg);
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Pygalisk", 0, gv_p05_ZERG_LAB_SPECIMENS, UnitGetPosition(lv_egg));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2443
// Implementation
gf_SetUnitClickableLockCount(c_transmissionDurationSet, lp_unit, 0);
UnitSetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexClickableRoom), IntToFixed((lp_room)));
gf_SetClickableCursorType(lp_unit, lp_cursorType);
UnitGroupAdd(lp_whichClickables, lp_unit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2493
}
UnitSetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexClickableLock), lv_value);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9566
gv_hotspots_FlashingTextTagCount += 1;
gv_hotspots_FlashingTextTags[gv_hotspots_FlashingTextTagCount] = TextTagLastCreated();
UnitSetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData), IntToFixed(gv_hotspots_FlashingTextTagCount));
if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == false)) {
gf_HideFlashingTextTag(false, lp_unit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9854
}
UnitSetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData), 0.0);
TextTagDestroy(lv_tag);
gf_LoadActorComplexAnimation(gf_ActorID(lp_unit));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1175
if (lv_u == null) { break; }
if ((UnitFilterMatch(lv_u, gv_p01_USER, UnitFilter((1 << c_targetFilterBuried), 0, 0, 0)) == true)) {
UnitSetCustomValue(lv_u, 0, 1.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1236
lv_u = UnitGroupUnitFromEnd(autoF97BAD66_g, autoF97BAD66_u);
if (lv_u == null) { break; }
UnitSetCustomValue(lv_u, 1, PointGetX(UnitGetPosition(lv_u)));
UnitSetCustomValue(lv_u, 2, PointGetY(UnitGetPosition(lv_u)));
UnitIssueOrder(lv_u, OrderTargetingPoint(AbilityCommand("move", 0), RegionRandomPoint(gv_critterHavens[lv_index])), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1237
if (lv_u == null) { break; }
UnitSetCustomValue(lv_u, 1, PointGetX(UnitGetPosition(lv_u)));
UnitSetCustomValue(lv_u, 2, PointGetY(UnitGetPosition(lv_u)));
UnitIssueOrder(lv_u, OrderTargetingPoint(AbilityCommand("move", 0), RegionRandomPoint(gv_critterHavens[lv_index])), c_orderQueueReplace);
UnitIssueOrder(lv_u, Order(AbilityCommand("RedstoneLavaCritterBurrow", 0)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:325
UnitIssueOrder(lv_harvestingProbe, OrderTargetingUnit(AbilityCommand("ProbeHarvest", 0), gf_NodeMatchingCustomValue(lv_targetTerrazineIndex)), c_orderQueueAddToEnd);
UnitGroupAdd(gv_probeHarvesters, lv_harvestingProbe);
UnitSetCustomValue(lv_harvestingProbe, 2, IntToFixed(lv_targetTerrazineIndex));
UnitSetCustomValue(lv_harvestingProbe, 3, IntToFixed(lp_secondaryRegionSearchIndex));
autoD1A8BB6F_val = gv_protossThreatLevel;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:326
UnitGroupAdd(gv_probeHarvesters, lv_harvestingProbe);
UnitSetCustomValue(lv_harvestingProbe, 2, IntToFixed(lv_targetTerrazineIndex));
UnitSetCustomValue(lv_harvestingProbe, 3, IntToFixed(lp_secondaryRegionSearchIndex));
autoD1A8BB6F_val = gv_protossThreatLevel;
if (autoD1A8BB6F_val == 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:787
UnitGroupAdd(gv_harvestingSpeedBumpCentralBullies, UnitFromId(1586));
UnitGroupAdd(gv_harvestingSpeedBumpCentralBullies, UnitFromId(962));
UnitSetCustomValue(UnitFromId(34), 0, 1.0);
gv_terrazineNodes[1] = UnitFromId(34);
UnitSetCustomValue(UnitFromId(70), 0, 2.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:789
UnitSetCustomValue(UnitFromId(34), 0, 1.0);
gv_terrazineNodes[1] = UnitFromId(34);
UnitSetCustomValue(UnitFromId(70), 0, 2.0);
gv_terrazineNodes[2] = UnitFromId(70);
UnitSetCustomValue(UnitFromId(78), 0, 3.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:791
UnitSetCustomValue(UnitFromId(70), 0, 2.0);
gv_terrazineNodes[2] = UnitFromId(70);
UnitSetCustomValue(UnitFromId(78), 0, 3.0);
gv_terrazineNodes[3] = UnitFromId(78);
UnitSetCustomValue(UnitFromId(35), 0, 4.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:793
UnitSetCustomValue(UnitFromId(78), 0, 3.0);
gv_terrazineNodes[3] = UnitFromId(78);
UnitSetCustomValue(UnitFromId(35), 0, 4.0);
gv_terrazineNodes[4] = UnitFromId(35);
UnitSetCustomValue(UnitFromId(24), 0, 5.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:795
UnitSetCustomValue(UnitFromId(35), 0, 4.0);
gv_terrazineNodes[4] = UnitFromId(35);
UnitSetCustomValue(UnitFromId(24), 0, 5.0);
gv_terrazineNodes[5] = UnitFromId(24);
UnitSetCustomValue(UnitFromId(81), 0, 6.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:797
UnitSetCustomValue(UnitFromId(24), 0, 5.0);
gv_terrazineNodes[5] = UnitFromId(24);
UnitSetCustomValue(UnitFromId(81), 0, 6.0);
gv_terrazineNodes[6] = UnitFromId(81);
UnitSetCustomValue(UnitFromId(27), 0, 7.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:799
UnitSetCustomValue(UnitFromId(81), 0, 6.0);
gv_terrazineNodes[6] = UnitFromId(81);
UnitSetCustomValue(UnitFromId(27), 0, 7.0);
gv_terrazineNodes[7] = UnitFromId(27);
UnitSetCustomValue(UnitFromId(30), 0, 8.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:801
UnitSetCustomValue(UnitFromId(27), 0, 7.0);
gv_terrazineNodes[7] = UnitFromId(27);
UnitSetCustomValue(UnitFromId(30), 0, 8.0);
gv_terrazineNodes[8] = UnitFromId(30);
UnitSetCustomValue(UnitFromId(28), 0, 9.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:770
if (autoA878FA45_var == null) { break; }
UnitGroupAdd(gv_cellBlockAJerksGroup, autoA878FA45_var);
UnitSetCustomValue(autoA878FA45_var, 0, DistanceBetweenPoints(UnitGetPosition(autoA878FA45_var), PointFromId(1140)));
UnitSetCustomValue(autoA878FA45_var, 1, AngleBetweenPoints(PointFromId(1140), UnitGetPosition(autoA878FA45_var)));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:771
UnitGroupAdd(gv_cellBlockAJerksGroup, autoA878FA45_var);
UnitSetCustomValue(autoA878FA45_var, 0, DistanceBetweenPoints(UnitGetPosition(autoA878FA45_var), PointFromId(1140)));
UnitSetCustomValue(autoA878FA45_var, 1, AngleBetweenPoints(PointFromId(1140), UnitGetPosition(autoA878FA45_var)));
}
TriggerExecute(gt_CellBlockAPatrol, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2406
UnitGroupAdd(lv_prisonerGroup, auto395C2B50_var);
lv_randomPoint = RegionRandomPoint(RegionFromId(45));
UnitSetCustomValue(auto395C2B50_var, 0, PointGetX(UnitGetPosition(auto395C2B50_var)));
UnitSetCustomValue(auto395C2B50_var, 1, PointGetY(UnitGetPosition(auto395C2B50_var)));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2407
lv_randomPoint = RegionRandomPoint(RegionFromId(45));
UnitSetCustomValue(auto395C2B50_var, 0, PointGetX(UnitGetPosition(auto395C2B50_var)));
UnitSetCustomValue(auto395C2B50_var, 1, PointGetY(UnitGetPosition(auto395C2B50_var)));
}
while (true) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2419
if ((RandomInt(1, 40) == 1)) {
lv_randomPoint = RegionRandomPoint(RegionFromId(45));
UnitSetCustomValue(auto67BD9FEE_var, 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(auto67BD9FEE_var, 1, PointGetY(lv_randomPoint));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2420
lv_randomPoint = RegionRandomPoint(RegionFromId(45));
UnitSetCustomValue(auto67BD9FEE_var, 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(auto67BD9FEE_var, 1, PointGetY(lv_randomPoint));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2653
UnitGroupAdd(lv_prisonerGroup, auto1BE7B4F4_var);
lv_randomPoint = RegionRandomPoint(RegionFromId(47));
UnitSetCustomValue(auto1BE7B4F4_var, 0, PointGetX(UnitGetPosition(auto1BE7B4F4_var)));
UnitSetCustomValue(auto1BE7B4F4_var, 1, PointGetY(UnitGetPosition(auto1BE7B4F4_var)));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2654
lv_randomPoint = RegionRandomPoint(RegionFromId(47));
UnitSetCustomValue(auto1BE7B4F4_var, 0, PointGetX(UnitGetPosition(auto1BE7B4F4_var)));
UnitSetCustomValue(auto1BE7B4F4_var, 1, PointGetY(UnitGetPosition(auto1BE7B4F4_var)));
}
while (true) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2666
if ((RandomInt(1, 32) == 1)) {
lv_randomPoint = RegionRandomPoint(RegionFromId(47));
UnitSetCustomValue(auto0F10452F_var, 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(auto0F10452F_var, 1, PointGetY(lv_randomPoint));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2667
lv_randomPoint = RegionRandomPoint(RegionFromId(47));
UnitSetCustomValue(auto0F10452F_var, 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(auto0F10452F_var, 1, PointGetY(lv_randomPoint));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2492
for ( ; ( (auto937B89B4_ai >= 0 && lv_i <= auto937B89B4_ae) || (auto937B89B4_ai < 0 && lv_i >= auto937B89B4_ae) ) ; lv_i += auto937B89B4_ai ) {
if ((gf_CreepExistsAroundPoint(gv_spineCrawlerPoints[lv_i]) == true) && ((gv_spineCrawlers[lv_i] == null) || (UnitIsAlive(gv_spineCrawlers[lv_i]) == false))) {
UnitSetCustomValue(lv_tempSpineCrawler, 0, 2.0);
gv_spineCrawlers[lv_i] = lv_tempSpineCrawler;
UnitIssueOrder(gv_spineCrawlers[lv_i], Order(AbilityCommand("SpineCrawlerUproot", 0)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2758
UnitGroupAdd(gv_zergSpeedBumpUnits, EventUnit());
lv_randomPoint = RegionRandomPoint(RegionFromId(62));
UnitSetCustomValue(EventUnit(), 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(EventUnit(), 1, PointGetY(lv_randomPoint));
UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("attack", 0), Point(UnitGetCustomValue(EventUnit(), 0), UnitGetCustomValue(EventUnit(), 1))), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2759
lv_randomPoint = RegionRandomPoint(RegionFromId(62));
UnitSetCustomValue(EventUnit(), 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(EventUnit(), 1, PointGetY(lv_randomPoint));
UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("attack", 0), Point(UnitGetCustomValue(EventUnit(), 0), UnitGetCustomValue(EventUnit(), 1))), c_orderQueueReplace);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2798
if ((RegionContainsPoint(RegionCircle(Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1)), 2.0), UnitGetPosition(autoB111683E_var)) == true)) {
lv_randomPoint = RegionRandomPoint(RegionFromId(62));
UnitSetCustomValue(autoB111683E_var, 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(autoB111683E_var, 1, PointGetY(lv_randomPoint));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2799
lv_randomPoint = RegionRandomPoint(RegionFromId(62));
UnitSetCustomValue(autoB111683E_var, 0, PointGetX(lv_randomPoint));
UnitSetCustomValue(autoB111683E_var, 1, PointGetY(lv_randomPoint));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:800
else {
}
UnitSetCustomValue(UnitFromId(317), 0, (UnitGetCustomValue(UnitFromId(317), 0) + 1.0));
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1064
}
UnitIssueOrder(EventUnitCargo(), Order(AbilityCommand("SiegeMode", 0)), c_orderQueueAddToEnd);
UnitSetCustomValue(gv_siegeTankDropship, 0, (UnitGetCustomValue(gv_siegeTankDropship, 0) + 1.0));
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3655
}
UnitSetCustomValue(EventUnit(), 0, 2.0);
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGetPosition(EventUnit()), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
PingSetScale(PingLastCreated(), 0.8);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3666
PingDestroy(PingLastCreated());
if ((UnitIsAlive(EventUnit()) == true)) {
UnitSetCustomValue(EventUnit(), 0, 0.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3736
}
UnitSetCustomValue(lv_transferUnit, 0, 2.0);
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGetPosition(lv_transferUnit), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
PingSetScale(PingLastCreated(), 0.8);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3746
PingDestroy(PingLastCreated());
if ((UnitIsAlive(lv_transferUnit) == true)) {
UnitSetCustomValue(lv_transferUnit, 0, 0.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3815
}
UnitSetCustomValue(lv_transferUnit, 0, 2.0);
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGetPosition(lv_transferUnit), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
PingSetScale(PingLastCreated(), 0.8);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3825
PingDestroy(PingLastCreated());
if ((UnitIsAlive(lv_transferUnit) == true)) {
UnitSetCustomValue(lv_transferUnit, 0, 0.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:824
lv_u = UnitGroupUnitFromEnd(auto728A7CC6_g, auto728A7CC6_u);
if (lv_u == null) { break; }
UnitSetCustomValue(lv_u, 0, PointGetX(UnitGetPosition(lv_u)));
UnitSetCustomValue(lv_u, 1, PointGetY(UnitGetPosition(lv_u)));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:825
if (lv_u == null) { break; }
UnitSetCustomValue(lv_u, 0, PointGetX(UnitGetPosition(lv_u)));
UnitSetCustomValue(lv_u, 1, PointGetY(UnitGetPosition(lv_u)));
}
while (true) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2438
autoDAD5E4FA_var = UnitGroupUnitFromEnd(autoDAD5E4FA_g, autoDAD5E4FA_u);
if (autoDAD5E4FA_var == null) { break; }
UnitSetCustomValue(autoDAD5E4FA_var, 0, IntToFixed(UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_ScriptedTOSS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(autoDAD5E4FA_var), 2.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterRawResource) | (1 << c_targetFilterMissile) | (1 << c_targetFilterDestructible), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)) | (1 << (c_targetFilterBenign - 32))), 0), c_unitCountAlive)));
}
autoD1A466A2_g = gv_vortexTargetGroup;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6796
if (auto074C9372_var == null) { break; }
lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_zergRegion);
UnitSetCustomValue(auto074C9372_var, 0, PointGetX(lv_randomSpot));
UnitSetCustomValue(auto074C9372_var, 1, PointGetY(lv_randomSpot));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6797
lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_zergRegion);
UnitSetCustomValue(auto074C9372_var, 0, PointGetX(lv_randomSpot));
UnitSetCustomValue(auto074C9372_var, 1, PointGetY(lv_randomSpot));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6811
if ((libNtve_gf_UnitInRegion(auto4771A35A_var, RegionCircle(Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1)), 1.0)) == true) && (RandomInt(1, 6) == 1)) {
lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_zergRegion);
UnitSetCustomValue(auto4771A35A_var, 0, PointGetX(lv_randomSpot));
UnitSetCustomValue(auto4771A35A_var, 1, PointGetY(lv_randomSpot));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6812
lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_zergRegion);
UnitSetCustomValue(auto4771A35A_var, 0, PointGetX(lv_randomSpot));
UnitSetCustomValue(auto4771A35A_var, 1, PointGetY(lv_randomSpot));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6884
}
lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_index].lv_zergRegion);
UnitSetCustomValue(UnitLastCreated(), 0, PointGetX(lv_randomSpot));
UnitSetCustomValue(UnitLastCreated(), 1, PointGetY(lv_randomSpot));
UnitGroupAdd(gv_briefingSlaughterAreas[lv_index].lv_zergGroup, UnitLastCreated());
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6885
lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_index].lv_zergRegion);
UnitSetCustomValue(UnitLastCreated(), 0, PointGetX(lv_randomSpot));
UnitSetCustomValue(UnitLastCreated(), 1, PointGetY(lv_randomSpot));
UnitGroupAdd(gv_briefingSlaughterAreas[lv_index].lv_zergGroup, UnitLastCreated());
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5699
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(33), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 1.0);
}
for (auto17B0F6A4_i = 1; auto17B0F6A4_i <= auto17B0F6A4_n; auto17B0F6A4_i += 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5704
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(83), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 2.0);
}
for (auto05BF46D0_i = 1; auto05BF46D0_i <= auto05BF46D0_n; auto05BF46D0_i += 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5709
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(91), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 3.0);
}
return true;