# Modulo (Real)

Grammarx mod y
FlagsNative | Function

Uses real values. Returns the remainder after the dividend has been divided by the divisor.

# Arguments

  • fixed — Dividend
  • fixed — Divisor

Returns — fixed

native fixed ModF(fixed x, fixed m);

Category: Math / Arithmetic

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2517

        if ((UnitIsAlive(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort) == true)) {
            UnitGroupAdd(lv_escortGroup, gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort);
            if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 20.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 160.0)) {
                UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 90.0))), c_orderQueueReplace);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2517

        if ((UnitIsAlive(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort) == true)) {
            UnitGroupAdd(lv_escortGroup, gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort);
            if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 20.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 160.0)) {
                UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 90.0))), c_orderQueueReplace);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2521

            }
            else {
                if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 200.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 340.0)) {
                    UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 270.0))), c_orderQueueReplace);
                }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2521

            }
            else {
                if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 200.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 340.0)) {
                    UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 270.0))), c_orderQueueReplace);
                }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:1128

        libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal DoodadDeath");
        libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal TreeFire");
        lv_iterations = FixedToInt((((PointGetY(PointFromId(142)) - PointGetY(PointFromId(122))) / 3.5) - ModF((PointGetY(PointFromId(142)) - PointGetY(PointFromId(122))), 3.5)));
        auto4CA18CCC_ae = lv_iterations;
        lv_i = 0;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2755

            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
        }
        UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
        UnitSetPropertyFixed(lv_unit, c_unitPropMovementSpeed, (UnitGetPropertyFixed(lv_unit, c_unitPropMovementSpeed, c_unitPropCurrent) * RandomFixed(0.9, 1.15)));
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3594

            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
        }
        UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
        UnitSetPropertyFixed(lv_unit, c_unitPropMovementSpeed, (UnitGetPropertyFixed(lv_unit, c_unitPropMovementSpeed, c_unitPropCurrent) * RandomFixed(0.9, 1.15)));
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:6334

            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
        }
        UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
        UnitSetPropertyFixed(lv_unit, c_unitPropMovementSpeed, (UnitGetPropertyFixed(lv_unit, c_unitPropMovementSpeed, c_unitPropCurrent) * RandomFixed(0.9, 1.3)));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2517

        if ((UnitIsAlive(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort) == true)) {
            UnitGroupAdd(lv_escortGroup, gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort);
            if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 20.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 160.0)) {
                UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 90.0))), c_orderQueueReplace);
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2517

        if ((UnitIsAlive(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort) == true)) {
            UnitGroupAdd(lv_escortGroup, gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort);
            if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 20.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 160.0)) {
                UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 90.0))), c_orderQueueReplace);
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2521

            }
            else {
                if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 200.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 340.0)) {
                    UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 270.0))), c_orderQueueReplace);
                }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2521

            }
            else {
                if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 200.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 340.0)) {
                    UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 270.0))), c_orderQueueReplace);
                }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus04.sc2mapMapScript.galaxy:1128

        libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal DoodadDeath");
        libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal TreeFire");
        lv_iterations = FixedToInt((((PointGetY(PointFromId(142)) - PointGetY(PointFromId(122))) / 3.5) - ModF((PointGetY(PointFromId(142)) - PointGetY(PointFromId(122))), 3.5)));
        auto4CA18CCC_ae = lv_iterations;
        lv_i = 0;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2mapMapScript.galaxy:2755

            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
        }
        UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
        UnitSetPropertyFixed(lv_unit, c_unitPropMovementSpeed, (UnitGetPropertyFixed(lv_unit, c_unitPropMovementSpeed, c_unitPropCurrent) * RandomFixed(0.9, 1.15)));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2mapMapScript.galaxy:3594

            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
        }
        UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
        UnitSetPropertyFixed(lv_unit, c_unitPropMovementSpeed, (UnitGetPropertyFixed(lv_unit, c_unitPropMovementSpeed, c_unitPropCurrent) * RandomFixed(0.9, 1.15)));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2mapMapScript.galaxy:6334

            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
        }
        UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
        UnitSetPropertyFixed(lv_unit, c_unitPropMovementSpeed, (UnitGetPropertyFixed(lv_unit, c_unitPropMovementSpeed, c_unitPropCurrent) * RandomFixed(0.9, 1.3)));
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2443

                auto99363702_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (auto99363702_i = 1; auto99363702_i <= auto99363702_n; auto99363702_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2448

                auto983ACE3F_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (auto983ACE3F_i = 1; auto983ACE3F_i <= auto983ACE3F_n; auto983ACE3F_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2453

                auto02FF94DE_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (auto02FF94DE_i = 1; auto02FF94DE_i <= auto02FF94DE_n; auto02FF94DE_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2458

                auto8C307F07_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (auto8C307F07_i = 1; auto8C307F07_i <= auto8C307F07_n; auto8C307F07_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2564

                autoECA18F03_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (autoECA18F03_i = 1; autoECA18F03_i <= autoECA18F03_n; autoECA18F03_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2569

                autoBABDB8DD_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (autoBABDB8DD_i = 1; autoBABDB8DD_i <= autoBABDB8DD_n; autoBABDB8DD_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2574

                auto107EC763_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (auto107EC763_i = 1; auto107EC763_i <= auto107EC763_n; auto107EC763_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:2579

                auto366B39FF_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (auto366B39FF_i = 1; auto366B39FF_i <= auto366B39FF_n; auto366B39FF_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2443

                auto99363702_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (auto99363702_i = 1; auto99363702_i <= auto99363702_n; auto99363702_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2448

                auto983ACE3F_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (auto983ACE3F_i = 1; auto983ACE3F_i <= auto983ACE3F_n; auto983ACE3F_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2453

                auto02FF94DE_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (auto02FF94DE_i = 1; auto02FF94DE_i <= auto02FF94DE_n; auto02FF94DE_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2458

                auto8C307F07_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (auto8C307F07_i = 1; auto8C307F07_i <= auto8C307F07_n; auto8C307F07_i += 1) {
                    UnitIssueOrder(gv_mothership[1], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[1]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2564

                autoECA18F03_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (autoECA18F03_i = 1; autoECA18F03_i <= autoECA18F03_n; autoECA18F03_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2569

                autoBABDB8DD_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (autoBABDB8DD_i = 1; autoBABDB8DD_i <= autoBABDB8DD_n; autoBABDB8DD_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 90.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2574

                auto107EC763_n = libLotv_gf_DifficultyValueInt2(2, 2, 1, 2);
                for (auto107EC763_i = 1; auto107EC763_i <= auto107EC763_n; auto107EC763_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInPhoenix", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:2579

                auto366B39FF_n = libLotv_gf_DifficultyValueInt2(0, 0, 1, 2);
                for (auto366B39FF_i = 1; auto366B39FF_i <= auto366B39FF_n; auto366B39FF_i += 1) {
                    UnitIssueOrder(gv_mothership[2], OrderTargetingPoint(AbilityCommand("FlagshipWarpInScout", 0), PointWithOffsetPolar(UnitGetPosition(gv_mothership[2]), 3.0, ModF((lv_referenceAngle + 270.0), 360.0))), c_orderQueueReplace);
                    Wait(0.1, c_timeAI);
                }

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:724

    }

    if ((libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_timed == false) && (ModF(UnitGetPropertyFixed(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_temple, c_unitPropEnergy, c_unitPropCurrent), 20.0) == 0.0) && (UnitGroupCount(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_defendersActivated, c_unitCountAlive) <= 2)) {
        libAMCT_gf_ARMSkyTempleTempleDefendersRespawnPrepareDefendersRanged(lp_templeIndex);
    }

mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmodbase.stormdata/LibAMVS.galaxy:1106

        }

        if ((ModF(TimerGetRemaining(lp_timer), 1.0) == 0.0)) {
            SoundPlayForPlayer(SoundLink("SwitchRoundTick", -1), c_maxPlayers, libAMVS_gv_saZo.lv_safePlayerGroup, ((((TimerGetRemaining(lp_timer) / (TimerGetRemaining(lp_timer) + TimerGetElapsed(lp_timer))) * 100.0) - 100.0) * -1.0), 0.0);
            SoundPlayForPlayer(SoundLink("DangerZoneTick", -1), c_maxPlayers, libAMVS_gv_saZo.lv_unsafePlayerGroup, ((((TimerGetRemaining(lp_timer) / (TimerGetRemaining(lp_timer) + TimerGetElapsed(lp_timer))) * 100.0) - 100.0) * -1.0), 0.0);

mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmodbase.stormdata/LibAMVS.galaxy:1111

        }

        if ((TimerGetRemaining(lp_timer) < 1.0) && (ModF(TimerGetRemaining(lp_timer), 0.25) == 0.0)) {
            SoundPlayForPlayer(SoundLink("SwitchRoundTick", -1), c_maxPlayers, libAMVS_gv_saZo.lv_safePlayerGroup, 100.0, 0.0);
            SoundPlayForPlayer(SoundLink("DangerZoneTick", -1), c_maxPlayers, libAMVS_gv_saZo.lv_unsafePlayerGroup, 100.0, 0.0);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2142

        lv_levelDifferenceTrunc = AbsF(Trunc(lv_levelDifferenceReal));
    }
    lv_levelDifferenceModulo = AbsF(ModF(lv_levelDifferenceReal, 1.0));
    lv_levelDifferenceModuloPostCalc = (lv_levelDifferenceModulo * 0.1);
    if ((lv_levelDifferenceTrunc == 0.0)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2577


    // Implementation
    lv_durationRealMod = ModF(lp_duration, 0.0625);
    lv_durationLoops = FixedToInt((lp_duration / 0.0625));
    if ((lv_durationRealMod > 0.0)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2610

    // Implementation
    lv_elapsedTime = lp_time;
    lv_loopsElapsed = (ModF(lv_elapsedTime, 1.0) * 16.0);
    lv_elapsedTime -= (lv_loopsElapsed / 16.0);
    if ((lv_loopsElapsed < 10.0)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2619

    }
    lv_timeElapsedString = lv_tempString;
    lv_secondsElapsed = ModF(lv_elapsedTime, 60.0);
    lv_elapsedTime -= lv_secondsElapsed;
    if ((lv_secondsElapsed < 10.0)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2821


    // Implementation
    lv_result = ModF(lp_angle, 360.0);
    if ((lv_result > 180.0)) {
        lv_result = (lv_result - 360.0);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2842


    // Implementation
    lv_diff = ModF(AbsF((lp_angle1 - lp_angle2)), 360.0);
    if ((lv_diff > 180.0)) {
        lv_diff = AbsF((lv_diff - 360.0));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:379

        lv_pingScale = (lv_scaleIter * 0.1);
        PingSetScale(lv_spiningShrinkingPing, lv_pingScale);
        PingSetRotation(lv_spiningShrinkingPing, (360 - (ModF(lv_scaleIter, 10.0) * 36)));
        Wait(0.1, c_timeReal);
    }