# Actor From

Grammar — Actor from reference name
FlagsNative | Function

Returns an actor from the actor reference specified in the Name parameter.

# Arguments

  • string — Name

Returns — actor

native actor ActorFrom(string name);

Category: Actor / Utility

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L4838
ActorFrom("::global.artifact")
// L8316
ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks)
// L8317
ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks)
// L8318
ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole)
// L8319
ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole)
// L8320
ActorFrom(gv_sOUNDACTOR_Lab_Monitors)
// L8321
ActorFrom(gv_sOUNDACTOR_Lab_Monitors)
// L8324
ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks)
// L8325
ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole)
// L8326
ActorFrom(gv_sOUNDACTOR_Lab_Monitors)
// L8334
ActorFrom(gv_sOUNDACTOR_MarSara_Fan)
// L4838
ActorFrom("::global.artifact")
// L8316
ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks)
// L8317
ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks)
// L8318
ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole)
// L8319
ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole)
// L8320
ActorFrom(gv_sOUNDACTOR_Lab_Monitors)
// L8321
ActorFrom(gv_sOUNDACTOR_Lab_Monitors)
// L8324
ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks)
// L8325
ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole)
// L8326
ActorFrom(gv_sOUNDACTOR_Lab_Monitors)
// L8334
ActorFrom(gv_sOUNDACTOR_MarSara_Fan)
// L1525
ActorFrom("::Terrain")
// L554
ActorFrom("::external.ZFLookAtHead")
// L1525
ActorFrom("::Terrain")
// L554
ActorFrom("::external.ZFLookAtHead")

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L935
ActorFrom("::LastCreatedActual")
// L943
ActorFrom("::LastCreatedActual")

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L4189
ActorFrom(lib281DEC45_gv_zSS_LookAtWingActorRef)
// L4225
ActorFrom(lib281DEC45_gv_zSS_LookAtHairActorRef)
// L4240
ActorFrom(lib281DEC45_gv_zSS_LookAtEyePrimalActorRef)
// L4251
ActorFrom(lib281DEC45_gv_zSS_LookAtHeadActorRef)
// L4283
ActorFrom(("::external." + lib281DEC45_gf_ZSS_CharacterSceneFinderTag(lv_indexCharacter)))
// L4287
ActorFrom(("::external." + lib281DEC45_gf_ZSS_CharacterActorAlias(lv_indexCharacter)))
// L12007
ActorFrom(lib281DEC45_gv_zSS_LookAtHeadActorRef)
// L12008
ActorFrom(lib281DEC45_gv_zSS_LookAtEyeActorRef)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1119
ActorFrom("::global.Skybox")
// L1122
ActorFrom("::global.Skybox")
// L1119
ActorFrom("::global.Skybox")
// L1122
ActorFrom("::global.Skybox")

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L2864
ActorFrom("::LastCreatedActual")
// L2866
ActorFrom("::LastCreatedActual")

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L3488
ActorFrom(("::external." + libVCST_gf_PS_ClickableSceneFinderTag(lv_indexClickable)))
// L3492
ActorFrom(("::external." + libVCST_gf_PS_ClickableActorAlias(lv_indexClickable)))
// L3541
ActorFrom(libVCST_gv_pS_LookAtMainCharacterActorRef)
// L3542
ActorFrom(libVCST_gv_pS_LookAtMainCharacterActorRef)
// L3551
ActorFrom(libVCST_gv_pS_LookAtCurrentCharacterActorRef)
// L3552
ActorFrom(libVCST_gv_pS_LookAtCurrentCharacterActorRef)
// L3561
ActorFrom(libVCST_gv_pS_LookAtRohanaHairActorRef)
// L3562
ActorFrom(libVCST_gv_pS_LookAtRohanaHairActorRef)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L914
ActorFrom(("::external." + libVCUI_gv_pU_ArmyUnitRotateFinderTag))
// L2793
ActorFrom(("::external.SoASection" + IntToString(lp_newTier)))
// L3311
ActorFrom("::external.StarmapKarax")
// L3314
ActorFrom("::external.StarmapArtanis")
// L6587
ActorFrom(("::external." + libVCUI_gv_pU_ArmyUnitRotateFinderTag))
// L9068
ActorFrom("::external.HoverA")
// L9071
ActorFrom("::external.HoverAlt")
// L9079
ActorFrom("::external.HoverB")
// L9082
ActorFrom("::external.HoverAlt")
// L9107
ActorFrom("::external.HoverAlt")

# mods/core.sc2mod

NativeLib.galaxy

// L342
ActorFrom("::LastCreated")
// L348
ActorFrom("::LastCreated")
// L1181
ActorFrom("::Scene")
// L218
ActorFrom("::LastCreated")
// L224
ActorFrom("::LastCreated")
// L1077
ActorFrom("::Scene")

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L3649
ActorFrom("::LastCreatedActual")
// L3845
ActorFrom("::LastCreatedActual")
// L3850
ActorFrom("::LastCreatedActual")
// L4988
ActorFrom("::Scene")

# mods/heroesmapmods/battlegroundmapmods/hanamura.stormmod

LibNPLD.galaxy

// L92
ActorFrom("::global.PayloadElevatorAttachment")
// L102
ActorFrom("::global.PayloadElevatorAttachment")

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L3078
ActorFrom("::LastCreatedActual")
// L3080
ActorFrom("::LastCreatedActual")
// L4626
ActorFrom("::external.Nova03_040")
// L4646
ActorFrom("::external.Nova03_040")

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L2990
ActorFrom(("::external." + libNCST_gf_NS_ClickableSceneFinderTag(lv_indexClickable)))
// L2994
ActorFrom(("::external." + libNCST_gf_NS_ClickableActorAlias(lv_indexClickable)))
// L3031
ActorFrom(libNCST_gv_NS_LookAtMainCharacterActorRef)
// L3032
ActorFrom(libNCST_gv_NS_LookAtMainCharacterActorRef)
// L3040
ActorFrom(libNCST_gv_NS_LookAtCurrentCharacterActorRef)
// L3041
ActorFrom(libNCST_gv_NS_LookAtCurrentCharacterActorRef)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L8260
ActorFrom("::external.Nova02_040")
// L8280
ActorFrom("::external.Nova02_040")
// L8260
ActorFrom("::external.Nova02_040")
// L8280
ActorFrom("::external.Nova02_040")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L10757
ActorFrom("::LastCreatedActual")

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L7690
ActorFrom("::Scene")

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L623
ActorFrom("::LastCreatedActual")
// L631
ActorFrom("::LastCreatedActual")