# Send Actor Message To Actor Region With Filters

Grammar — Send actor message message to all actors that intersect actor region region with their intersectType that belong to class classFilters and match terms terms
FlagsNative | Action

Sends an actor message to all the actors contained within the specified region actor. The Intersect Type parameter defines which radius will be used to determine intersection with the region. The Class Filters parameter is used to specify which types of actors should receive the message. The format for Class Filters is a list of comma delimited actor types. The Terms parameter is used to specify a condition that an actor in the region must meet in order to receive the message. The format for Terms is a list of semi colon delimited actor terms. An actor message will perform an action and/or trigger an event on the actor it is sent to.

# Arguments

  • actor — Region
  • int [ preset::ActorIntersectType ] — Intersect Type
  • string [ actormsg ] — Message
  • string — Class Filters
  • string — Terms

Returns — void

native void ActorRegionSend(
	actor a,
	int intersect,
	string msg,
	string filters,
	string terms,
);

Category: Actor / Send Actor Messages

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L340
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Down", "Doodad", "ScopeContains PortZionScrapElevatorLeft")
// L344
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Up", "Doodad", "ScopeContains PortZionScrapElevatorLeft")
// L340
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Down", "Doodad", "ScopeContains PortZionScrapElevatorLeft")
// L344
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Up", "Doodad", "ScopeContains PortZionScrapElevatorLeft")
// L992
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "ModelSwap UmojanLabWallConsolesDeath", "Doodad", ("ScopeContains " + ("UmojanLabWallConsoles")))
// L537
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString)
// L992
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "ModelSwap UmojanLabWallConsolesDeath", "Doodad", ("ScopeContains " + ("UmojanLabWallConsoles")))
// L537
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString)
// L520
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_actorMessage, "Doodad", ("ScopeContains " + lp_doodadType))
// L520
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_actorMessage, "Doodad", ("ScopeContains " + lp_doodadType))

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L3687
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms)

# mods/core.sc2mod

NativeLib.galaxy

// L434
ActorRegionSend(lp_region, c_actorIntersectAgainstRadiusContact, lp_message, null, null)
// L447
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, null, null)
// L461
ActorRegionSend(lv_actorRegion, lp_intersectType, lp_message, lp_classFilters, lp_terms)
// L1150
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Doodad", lv_animTermsString)
// L1164
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeathModel")
// L1179
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy Immediate", "Model", "ScopeContains _DeathModel")
// L1285
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString)
// L1496
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString)
// L1521
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "AnimPlay Death Death PlayForever,NonLooping", "Doodad", lv_animTermsString)
// L1522
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "StatusIncrement DoodadKilled", "Doodad", lv_statusTermsString)
// L317
ActorRegionSend(lp_region, c_actorIntersectAgainstRadiusContact, lp_message, null, null)
// L330
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, null, null)
// L344
ActorRegionSend(lv_actorRegion, lp_intersectType, lp_message, lp_classFilters, lp_terms)
// L1045
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Doodad", lv_animTermsString)
// L1059
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeathModel")
// L1060
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _DeathModel")
// L1075
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy Immediate", "Model", "ScopeContains _DeathModel")
// L1181
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString)
// L1305
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString)
// L1330
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "AnimPlay Death Death PlayForever,NonLooping", "Doodad", lv_animTermsString)

# mods/heroes.stormmod

MapScript.galaxy

// L927
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeadClearable")
// L928
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _DeadClearable")
// L927
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeadClearable")
// L928
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _DeadClearable")

# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod

LibAREN.galaxy

// L1296
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Activate", "Doodad", "ScopeContains _StartingPlatform")
// L1299
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Deactivate", "Doodad", "ScopeContains _StartingPlatform")
// L2147
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (("Signal " + lv_actorMessageTeamString + lv_actorMessageLevelString + "Kill")), "Doodad", "ScopeContains _Spectator")
// L2519
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal OrderMegaKill", "Doodad", "ScopeContains _Spectator")
// L2520
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal ChaosMegaKill", "Doodad", "ScopeContains _Spectator")

# mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod

LibAMGT.galaxy

// L178
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal NightOn", "Doodad", "ScopeContains _StreetLamp")
// L185
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal NightOff", "Doodad", "ScopeContains _StreetLamp")

# mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod

LibPEB1.galaxy

// L2156
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _Clearable")
// L2157
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _Clearable")

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L1497
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _Clearable")
// L1498
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _Clearable")

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2931
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString)

# mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod

LibMTOD.galaxy

// L688
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _ToDClearable")
// L689
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _ToDClearable")
// L844
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "SetPlayerId 11", "Doodad", "ScopeContains _TownIndicator")
// L845
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Order", "Doodad", "ScopeContains _CaptureBanner")
// L848
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "SetPlayerId 12", "Doodad", "ScopeContains _TownIndicator")
// L849
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Chaos", "Doodad", "ScopeContains _CaptureBanner")
// L1964
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal OpenSesame", "Doodad", "ScopeContains _ArchwayDoor")

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L3824
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L3669
ActorRegionSend(lv_ar, c_actorIntersectAgainstRadiusContact, lp_extraMessage, "Model", ("ModelName " + lv_modelOld + "; PlayerId " + IntToString(lp_player) + " " + IntToString(lp_player)))
// L3670
ActorRegionSend(lv_ar, c_actorIntersectAgainstRadiusContact, lp_extraMessage, "Unit", ("ModelName " + lv_modelOld + "; PlayerId " + IntToString(lp_player) + " " + IntToString(lp_player)))
// L11543
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms)