# Actor From Scope
Grammar — name actor from the scope actorScope
Flags —Native
|Function
Returns an actor from the specified scope. The Name parameter can be either an actor ID or an actor reference.
# Arguments
actorscope
— Actor Scopestring
— Name
Returns — actor
native actor ActorFromScope(actorscope as, 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/ttutorial01.sc2map/MapScript.galaxy:4292
UnitGroupLoopBegin(UnitGroup("Marine", gv_p02_SIMULATOR, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
libNtve_gf_KillModel(ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted"));
UnitGroupLoopStep();
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:6712
UnitGroupLoopBegin(UnitGroup("MineralField", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
libNtve_gf_KillModel(ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted"));
UnitGroupLoopStep();
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:7117
UnitGroupLoopBegin(UnitGroup("VespeneGeyser", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
libNtve_gf_KillModel(ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted"));
UnitGroupLoopStep();
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:4292
UnitGroupLoopBegin(UnitGroup("Marine", gv_p02_SIMULATOR, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
libNtve_gf_KillModel(ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted"));
UnitGroupLoopStep();
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:6712
UnitGroupLoopBegin(UnitGroup("MineralField", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
libNtve_gf_KillModel(ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted"));
UnitGroupLoopStep();
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:7117
UnitGroupLoopBegin(UnitGroup("VespeneGeyser", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
while (!UnitGroupLoopDone()) {
libNtve_gf_KillModel(ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted"));
UnitGroupLoopStep();
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8939
libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(UnitLastCreated()), "Unpowered");
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "AnimBlendTimeApply");
ActorSend(ActorFromScope(ActorScopeFromUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitA), "::Scene"), "SceneStrobeSetFalloff 2.000000");
}
else {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8964
libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(UnitLastCreated()), "Unpowered");
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "AnimBlendTimeApply");
ActorSend(ActorFromScope(ActorScopeFromUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitB), "::Scene"), "SceneStrobeSetFalloff 2.000000");
}
else {
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1240
// Automatic Variable Declarations
// Implementation
return ActorFromScope(ActorScopeFromUnit(lp_unit), "::Main");
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1136
// Automatic Variable Declarations
// Implementation
return ActorFromScope(ActorScopeFromUnit(lp_unit), "::Main");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18241
ActorScopeSend(lv_scope, "Signal LootSprayKill");
ActorSend(ActorFromScope(lv_scope, "::Main"), libNtve_gf_Create(libCore_gv_mountModelActor3, (libGame_gv_players[lv_sprayingPlayer].lv_lootContent.lv_loot_Spray.lv_sprayModelID)));
ActorSend(ActorFromScope(lv_scope, libCore_gv_mountModelActor3), libNtve_gf_SpraySet(lv_spray));
if ((lv_mapID == "")) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18242
ActorScopeSend(lv_scope, "Signal LootSprayKill");
ActorSend(ActorFromScope(lv_scope, "::Main"), libNtve_gf_Create(libCore_gv_mountModelActor3, (libGame_gv_players[lv_sprayingPlayer].lv_lootContent.lv_loot_Spray.lv_sprayModelID)));
ActorSend(ActorFromScope(lv_scope, libCore_gv_mountModelActor3), libNtve_gf_SpraySet(lv_spray));
if ((lv_mapID == "")) {
lv_mapID = "None";
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18728
ActorSend(lv_heroActor, (("AnimGroupRemove " + lv_poseAnimGroup + " Instant")));
ActorSend(lv_heroActor, (("AnimBlendTimeApply")));
ActorSend(ActorFromScope(ActorScopeFromUnit(EventUnit()), lv_mountActorName), libNtve_gf_Destroy());
}
else {
mods/heromods/chromie.stormmod — base.stormdata/LibHCHR.galaxy:249
}
ActorSend(ActorFromScope(ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch()), "ChromieTemporalLoopTargetTrailFX"), "AnimGroupApply Teleport {} {} Instant");
ActorCreate(ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch()), "ChromieTemporalLoopTargetTrailFX", null, null, null);
ActorSend(libNtve_gf_ActorLastCreated(), "AnimBracketStart BSD {} Stand Death");
mods/heromods/hanzo.stormmod — base.stormdata/LibHHAN.galaxy:366
lv_numberofGrowthLoops = ((lv_chargingBehaviorDuration / 0.0625) + 1.0);
lv_offsetPerLoop = (lv_extraRange / lv_numberofGrowthLoops);
lv_guide = ActorFromScope(ActorScopeFrom("::Cursor"), "HanzoStormBowGuide");
// Actions