# 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
- [F] —
text
— Actor Get Text — ( ActorGetText ) - [F] —
actor
— Actor From Reference — ( ActorRefGet ) - [F] —
text
— Actor Scope Get Text — ( ActorScopeGetText ) - [F] —
actor
— Actor From — ( ActorFrom ) - [F] —
actor
— Actor From Actor — ( ActorFromActor ) - [F] —
actor
— Actor From Doodad — ( ActorFromDoodad ) - [F] —
actor
— Actor From Portrait — ( ActorFromPortrait ) - [F] —
actor
— Actor From Dialog Item — ( ActorFromDialogControl ) - [F] —
actor
— Actor From Scope — ( ActorFromScope ) - [F] —
actor
— Actor From Unit — ( libNtve_gf_MainActorofUnit ) - [F] —
actorscope
— Actor Scope From — ( ActorScopeFrom ) - [F] —
actorscope
— Actor Scope From Actor — ( ActorScopeFromActor ) - [F] —
actorscope
— Actor Scope From Portrait — ( ActorScopeFromPortrait ) - [F] —
actorscope
— Actor Scope From Dialog Item — ( ActorScopeFromDialogControl ) - [F] —
actorscope
— Actor Scope From Unit — ( ActorScopeFromUnit ) - [F] —
int
— Texture Slot Component — ( TextureGetSlotComponent ) - [F] —
string
— Texture Slot Name — ( TextureGetSlotName ) - [F] —
void
— Actor Set Reference — ( ActorRefSet ) - [F] —
void
— Apply Global Texture Group — ( ActorTextureGroupApplyGlobal ) - [F] —
void
— Remove Global Texture Group — ( ActorTextureGroupRemoveGlobal ) - [F] —
void
— Push Texture Group — ( ActorTextureGroupPush ) - [F] —
void
— Pop Texture Group — ( ActorTextureGroupPop ) - [F] —
void
— Make Actor Face Angle — ( libNtve_gf_MakeModelFaceAngle ) - [F] —
void
— Play Movie Texture On Unit Actor — ( libNtve_gf_PlayMovieTextureOnUnitActor ) - [F] —
void
— Stop All Video Textures On Unit — ( libNtve_gf_StopAllVideoTexturesOnUnit ) - [F] —
void
— Show/Hide Doodads In Region — ( libNtve_gf_ShowHideDoodadsInRegion ) - [F] —
void
— Actor Add Orient Update — ( ActorAddOrientUpdate )
# Examples
# campaigns/liberty.sc2campaign
// L4292
ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted")
// L6712
ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted")
// L7117
ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted")
// L4292
ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted")
// L6712
ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted")
// L7117
ActorFromScope(ActorScopeFromUnit(UnitGroupLoopCurrent()), "ModelHosted")
# campaigns/swarmstory.sc2campaign
// L8939
ActorFromScope(ActorScopeFromUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitA), "::Scene")
// L8964
ActorFromScope(ActorScopeFromUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitB), "::Scene")
# mods/core.sc2mod
// L1240
ActorFromScope(ActorScopeFromUnit(lp_unit), "::Main")
// L1136
ActorFromScope(ActorScopeFromUnit(lp_unit), "::Main")
# mods/heroesdata.stormmod
// L18241
ActorFromScope(lv_scope, "::Main")
// L18242
ActorFromScope(lv_scope, libCore_gv_mountModelActor3)
// L18728
ActorFromScope(ActorScopeFromUnit(EventUnit()), lv_mountActorName)
# mods/heromods/chromie.stormmod
// L249
ActorFromScope(ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch()), "ChromieTemporalLoopTargetTrailFX")
# mods/heromods/hanzo.stormmod
// L366
ActorFromScope(ActorScopeFrom("::Cursor"), "HanzoStormBowGuide")