# Actor From Actor
Grammar — Actor connected to actor via reference name
Flags —Native
|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
— Actorstring
— Name
Returns — actor
native actor ActorFromActor(actor a, string name);
# Related
Category: Actor / Utility
- Actor Get Text —
text
— ActorGetText - Actor From Reference —
actor
— ActorRefGet - Actor Scope Get Text —
text
— ActorScopeGetText - Actor From —
actor
— ActorFrom - Actor From Actor —
actor
— ActorFromActor - Actor From Doodad —
actor
— ActorFromDoodad - Actor From Portrait —
actor
— ActorFromPortrait - Actor From Dialog Item —
actor
— ActorFromDialogControl - Actor From Scope —
actor
— ActorFromScope - Actor From Unit —
actor
— libNtve_gf_MainActorofUnit - Actor Scope From —
actorscope
— ActorScopeFrom - Actor Scope From Actor —
actorscope
— ActorScopeFromActor - Actor Scope From Portrait —
actorscope
— ActorScopeFromPortrait - Actor Scope From Dialog Item —
actorscope
— ActorScopeFromDialogControl - Actor Scope From Unit —
actorscope
— ActorScopeFromUnit - Texture Slot Component —
int
— TextureGetSlotComponent - Texture Slot Name —
string
— TextureGetSlotName - Actor Set Reference —
void
— ActorRefSet - Apply Global Texture Group —
void
— ActorTextureGroupApplyGlobal - Remove Global Texture Group —
void
— ActorTextureGroupRemoveGlobal - Push Texture Group —
void
— ActorTextureGroupPush - Pop Texture Group —
void
— ActorTextureGroupPop - Make Actor Face Angle —
void
— libNtve_gf_MakeModelFaceAngle - Play Movie Texture On Unit Actor —
void
— libNtve_gf_PlayMovieTextureOnUnitActor - Stop All Video Textures On Unit —
void
— libNtve_gf_StopAllVideoTexturesOnUnit - Show/Hide Doodads In Region —
void
— libNtve_gf_ShowHideDoodadsInRegion - Actor Add Orient Update —
void
— ActorAddOrientUpdate
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.sc2mod — base.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");
}