# Actor From Actor

Grammar — Actor connected to actor via reference name
FlagsNative | Function

Returns an actor that is connected to the specified actor. The Name parameter can be either an actor ID or an actor reference, but is typically an actor reference.

# Arguments

  • actor — Actor
  • string — Name

Returns — actor

native actor ActorFromActor(actor a, string name);

Category: Actor / Utility

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:3664

        libNtve_gf_SendActorMessageToUnit(auto47B466D3_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(auto47B466D3_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto47B466D3_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(auto47B466D3_var, "IncapStandUp", 1);
        UnitSetFacing(auto47B466D3_var, 315.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5596

        libNtve_gf_SendActorMessageToUnit(autoB9055DE1_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(autoB9055DE1_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoB9055DE1_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(autoB9055DE1_var, "IncapStandUp", 1);
        UnitSetFacing(autoB9055DE1_var, 135.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7532

        libNtve_gf_SendActorMessageToUnit(autoA454EC07_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(autoA454EC07_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoA454EC07_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(autoA454EC07_var, "IncapStandUp", 1);
        UnitSetFacing(autoA454EC07_var, 45.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:9637

        libNtve_gf_SendActorMessageToUnit(auto29E3CE04_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(auto29E3CE04_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto29E3CE04_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(auto29E3CE04_var, "IncapStandUp", 1);
        libNtve_gf_MakeUnitInvulnerable(auto29E3CE04_var, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:10370

        libNtve_gf_SendActorMessageToUnit(autoADE5B514_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(autoADE5B514_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoADE5B514_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(autoADE5B514_var, "IncapStandUp", 1);
        libNtve_gf_ShowHideUnit(autoADE5B514_var, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:11418

        libNtve_gf_SendActorMessageToUnit(auto5E71AC3A_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(auto5E71AC3A_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto5E71AC3A_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(auto5E71AC3A_var, "IncapStandUp", 1);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:3664

        libNtve_gf_SendActorMessageToUnit(auto47B466D3_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(auto47B466D3_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto47B466D3_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(auto47B466D3_var, "IncapStandUp", 1);
        UnitSetFacing(auto47B466D3_var, 315.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:5596

        libNtve_gf_SendActorMessageToUnit(autoB9055DE1_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(autoB9055DE1_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoB9055DE1_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(autoB9055DE1_var, "IncapStandUp", 1);
        UnitSetFacing(autoB9055DE1_var, 135.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:7532

        libNtve_gf_SendActorMessageToUnit(autoA454EC07_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(autoA454EC07_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoA454EC07_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(autoA454EC07_var, "IncapStandUp", 1);
        UnitSetFacing(autoA454EC07_var, 45.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:9637

        libNtve_gf_SendActorMessageToUnit(auto29E3CE04_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(auto29E3CE04_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto29E3CE04_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(auto29E3CE04_var, "IncapStandUp", 1);
        libNtve_gf_MakeUnitInvulnerable(auto29E3CE04_var, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:10370

        libNtve_gf_SendActorMessageToUnit(autoADE5B514_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(autoADE5B514_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoADE5B514_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(autoADE5B514_var, "IncapStandUp", 1);
        libNtve_gf_ShowHideUnit(autoADE5B514_var, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:11418

        libNtve_gf_SendActorMessageToUnit(auto5E71AC3A_var, "AnimGroupRemove Unpowered");
        libNtve_gf_SendActorMessageToUnit(auto5E71AC3A_var, "UIStatusFlagSet");
        ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto5E71AC3A_var), "HeroIncap"), "Destroy");
        UnitBehaviorRemove(auto5E71AC3A_var, "IncapStandUp", 1);
    }

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10777

            UnitBehaviorRemove(lv_targetHero, "HallOfStormsHealBuff", 1);
            UnitBehaviorRemove(lv_targetHero, "HallOfStormsProtectionBuff", 1);
            ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(lv_targetHero), "HallOfStormsHealBuffFX"), "Destroy Immediate");
            libGame_gf_HeroDeathEnableDisableDeadSoundStateForPlayer(false, lv_targetPlayer);
            PlayerGroupAdd(lv_vOGroup, lv_targetPlayer);

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10805

                UnitBehaviorRemove(lv_targetHero, "HallOfStormsHealBuff", 1);
                UnitBehaviorRemove(lv_targetHero, "HallOfStormsProtectionBuff", 1);
                ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(lv_targetHero), "HallOfStormsHealBuffFX"), "Destroy Immediate");
                libGame_gf_HeroDeathEnableDisableDeadSoundStateForPlayer(false, lv_targetPlayer);
                PlayerGroupAdd(lv_vOGroup, lv_targetPlayer);

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:958

    UnitBehaviorRemove(lv_heroUnit, "HallOfStormsProtectionBuff", 1);
    UnitBehaviorAdd(libGame_gv_players[lp_player].lv_heroUnit, "PVEResurrectInvulnerability", libGame_gv_players[lp_player].lv_heroUnit, 1);
    ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(lv_heroUnit), "HallOfStormsHealBuffFX"), "Destroy Immediate");
}

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:514

    UnitBehaviorRemove(lv_heroUnit, "HallOfStormsHealBuff", 1);
    UnitBehaviorRemove(lv_heroUnit, "HallOfStormsProtectionBuff", 1);
    ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(lv_heroUnit), "HallOfStormsHealBuffFX"), "Destroy Immediate");
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18599

        lv_mountModel = libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountModel;
        ActorSend(lv_heroActor, libNtve_gf_Create(lv_actorNameForMount, (lv_mountModel)));
        lv_mountActor = ActorFromActor(lv_heroActor, lv_actorNameForMount);
        libCore_gf_SendMountActorMessagesToActor(lv_mountIndex, lv_mountActor);
        if ((libGame_gv_players[lv_heroIndex].lv_heroData.lv_isFlyer == true)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:8354

        lv_i = 1;
        for ( ; ( (autoEE6B7FB0_ai >= 0 && lv_i <= autoEE6B7FB0_ae) || (autoEE6B7FB0_ai < 0 && lv_i >= autoEE6B7FB0_ae) ) ; lv_i += autoEE6B7FB0_ai ) {
            ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(libUIUI_gv_uITargetingHelperPanelTargetUnitsForPlayer[lp_player][lv_i]), ("FriendlyTargetHelperBeamPlayer" + IntToString(lp_player))), "Destroy");
        }
        libUIUI_gv_uITargetingHelperPanelPlayerIsTargetingOffensiveAbility[lp_player] = false;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:16325

        if ((lv_i != EventPlayer())) {
            TextExpressionSetToken("Param/Expression/lib_UIUI_99C703B2", "A", IntToText(lv_i));
            ActorSendAsText(ActorFromActor(libNtve_gf_MainActorofUnit(libUIUI_gv_uITargetingHelperPanelTargetUnitsForPlayer[EventPlayer()][lv_frameIndex]), ("FriendlyTargetHelperBeamPlayer" + IntToString(EventPlayer()))), TextExpressionAssemble("Param/Expression/lib_UIUI_99C703B2"));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:16365


    }
    ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(libUIUI_gv_uITargetingHelperPanelTargetUnitsForPlayer[EventPlayer()][lv_frameIndex]), ("FriendlyTargetHelperBeamPlayer" + IntToString(EventPlayer()))), "Destroy");
    return true;
}

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:1517

    UnitBehaviorRemove(lv_targetHero, "HallOfStormsHealBuff", 1);
    UnitBehaviorRemove(lv_targetHero, "HallOfStormsProtectionBuff", 1);
    ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(lv_targetHero), "HallOfStormsHealBuffFX"), "Destroy Immediate");
    if ((UnitGetType(libGame_gv_players[lv_targetPlayer].lv_heroUnit) == "HeroLostVikingsController")) {
        if ((libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_targetPlayer][1].lv_spiritUnit == null) && (libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_targetPlayer][2].lv_spiritUnit == null) && (libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_targetPlayer][3].lv_spiritUnit == null)) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:1976

    libNtve_gf_SendActorMessageToUnit(lp_attachmentUnit, "Signal BaselineHook");
    libNtve_gf_SendActorMessageToUnit(lp_targetUnit, (("AttachOffset ::global.XanthosNewPart {" + (lp_attachPont) + "} " + FixedToString(lp_xOffset, c_fixedPrecisionAny) + "," + FixedToString(lp_yOffset, c_fixedPrecisionAny) + "," + FixedToString(lp_zOffset, c_fixedPrecisionAny) + " {} {" + (lp_facingAdjustment) + "}")));
    ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(lp_targetUnit), "XanthosPartList"), "ListAdd ::global.XanthosNewPart");
}