# Send Actor Message

Grammar — Send message message to actor actor
FlagsNative | Action

Sends an actor message to an actor. An actor message will perform an action and/or trigger an event on the actor it is sent to.

# Arguments

  • actor — Actor
  • string [ actormsg ] — Message

Returns — void

native void ActorSend(actor a, string msg);

Category: Actor / Send Actor Messages

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L4707
ActorSend(lv_birth, "SetTeamColor 0,66,255 0,66,255")
// L7200
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(1.0, 1.0, 1.0, 0.0))
// L7201
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(gv_c_PlaneHeight))
// L7257
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height))
// L7258
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(2.0, 2.0, 2.0, 0.0))
// L7263
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height))
// L817
ActorSend(gv_planetCrackerHoleAlpha, "SetVisibility")
// L818
ActorSend(gv_planetCrackerHoleBeta, "SetVisibility")
// L819
ActorSend(gv_planetCrackerHoleGamma, "SetVisibility")
// L820
ActorSend(gv_planetCrackerHoleOmega, "SetVisibility")
// L821
ActorSend(gv_planetCrackerHolePlayerBase, "SetVisibility")
// L1322
ActorSend(gv_planetCrackerHoleAlpha, "SetVisibility 1")
// L1323
ActorSend(gv_planetCrackerHoleAlpha, "Signal Purified")
// L1432
ActorSend(gv_planetCrackerHoleBeta, "SetVisibility 1")
// L1433
ActorSend(gv_planetCrackerHoleBeta, "Signal Purified")
// L1546
ActorSend(gv_planetCrackerHoleGamma, "SetVisibility 1")
// L4558
ActorSend(libNtve_gf_ActorLastCreated(), "SetScale 0.500000")
// L4561
ActorSend(libNtve_gf_ActorLastCreated(), "SetScale 0.500000")
// L347
ActorSend(lv_actorRegion, "Destroy")
// L955
ActorSend(ActorFromDoodad(DoodadFromId(235)), libNtve_gf_ModelSwap("HybridHoldingCellDeath", 0))
// L956
ActorSend(ActorFromDoodad(DoodadFromId(235)), "AnimPlay '' Death PlayForever")
// L966
ActorSend(gv_outhouse, "Destroy")
// L2395
ActorSend(ActorFromDoodad(DoodadFromId(2469)), "AnimBracketStart Rise Stand,Work,Start Stand,Work Stand,Work,End")
// L2423
ActorSend(ActorFromDoodad(DoodadFromId(2467)), "AnimBracketStart Rise Stand,Work,Start Stand,Work Stand,Work,End")
// L2451
ActorSend(ActorFromDoodad(DoodadFromId(2466)), "AnimBracketStart Rise Stand,Work,Start Stand,Work Stand,Work,End")
// L2479
ActorSend(ActorFromDoodad(DoodadFromId(1045)), "AnimBracketStart Rise Stand,Work,Start Stand,Work Stand,Work,End")
// L2507
ActorSend(ActorFromDoodad(DoodadFromId(464)), "AnimBracketStart Rise Stand,Work,Start Stand,Work Stand,Work,End")
// L5819
ActorSend(ActorFromDoodad(DoodadFromId(2458)), "AnimBracketStart Work Stand,Work,Start Stand,Work IGNORE")
// L12015
ActorSend(ActorFromDoodad(DoodadFromId(169)), "AnimBracketStart Rise Stand,Work,Start Stand,Work Stand,Work,End")
// L4037
ActorSend(libNtve_gf_ActorLastCreated(), "SetScale 0.750000")
// L4047
ActorSend(libNtve_gf_ActorLastCreated(), "SetScale 0.750000")
// L4838
ActorSend(ActorFrom("::global.artifact"), "SetVisibility 1")
// L4165
ActorSend(gv_armoryOutHourse, libNtve_gf_SetFacing(90.0))
// L4166
ActorSend(gv_armoryOutHourse, libNtve_gf_SetHeight(0.4))
// L4170
ActorSend(gv_bridgeOutHourse, libNtve_gf_SetFacing(150.0))
// L4171
ActorSend(gv_bridgeOutHourse, libNtve_gf_SetHeight(4.0))
// L8316
ActorSend(ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks), "SoundSetPaused")
// L8317
ActorSend(ActorFrom(gv_sOUNDACTOR_Lab_LiquidTanks), "SoundSetMuted")
// L8318
ActorSend(ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole), "SoundSetPaused")
// L8319
ActorSend(ActorFrom(gv_sOUNDACTOR_Lab_ResearchConsole), "SoundSetMuted")
// L8320
ActorSend(ActorFrom(gv_sOUNDACTOR_Lab_Monitors), "SoundSetPaused")
// L8321
ActorSend(ActorFrom(gv_sOUNDACTOR_Lab_Monitors), "SoundSetMuted")
// L577
ActorSend(gv_outhouse, "Destroy")
// L2220
ActorSend(ActorFromDoodad(DoodadFromId(584)), "Signal DoodadDeath")
// L3666
ActorSend(ActorFromDoodad(DoodadFromId(415)), "Signal DoodadDeath")
// L4940
ActorSend(ActorFromDoodad(DoodadFromId(256)), "Signal DoodadDeath")
// L4179
ActorSend(gv_com_Actor, "SetScale 0.600000")
// L5747
ActorSend(gv_con_Actor01, "SetScale 0.600000")
// L6555
ActorSend(gv_con_Actor01, "SetScale 0.600000")
// L4367
ActorSend(libNtve_gf_ActorLastCreated(), "SetScale 0.800000")
// L3456
ActorSend(libNtve_gf_ActorLastCreated(), "SetHeight 3.000000")
// L612
ActorSend(gv_outhouse, "Destroy")
// L762
ActorSend(lv_crashingDoodad, "Destroy")
// L5589
ActorSend(lv_crashBarracks01, "Destroy")
// L5649
ActorSend(lv_crashBarracks02, "Destroy")
// L5709
ActorSend(lv_crashFactory01, "Destroy")
// L5769
ActorSend(lv_crashFactory02, "Destroy")
// L5829
ActorSend(lv_crashBattlecruiser01, "Destroy")
// L5889
ActorSend(lv_crashBattlecruiser02, "Destroy")
// L7956
ActorSend(gv_fire01, "Destroy")
// L7957
ActorSend(gv_fire02, "Destroy")
// L7958
ActorSend(gv_fire03, "Destroy")
// L3664
ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto47B466D3_var), "HeroIncap"), "Destroy")
// L5596
ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoB9055DE1_var), "HeroIncap"), "Destroy")
// L7532
ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoA454EC07_var), "HeroIncap"), "Destroy")
// L9637
ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto29E3CE04_var), "HeroIncap"), "Destroy")
// L10370
ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(autoADE5B514_var), "HeroIncap"), "Destroy")
// L11418
ActorSend(ActorFromActor(libNtve_gf_MainActorofUnit(auto5E71AC3A_var), "HeroIncap"), "Destroy")
// L1497
ActorSend(ActorFromDoodad(DoodadFromId(1069)), "Signal OneTower")
// L1565
ActorSend(ActorFromDoodad(DoodadFromId(1085)), "Signal OneTower")
// L1633
ActorSend(ActorFromDoodad(DoodadFromId(554)), "Signal OneTower")
// L1701
ActorSend(ActorFromDoodad(DoodadFromId(1533)), "Signal OneTower")
// L5917
ActorSend(libNtve_gf_MainActorofUnit(autoB87BBE03_var), "DestroyParticles")
// L5918
ActorSend(libNtve_gf_MainActorofUnit(autoB87BBE03_var), "DestroyRibbons")
// L351
ActorSend(lv_crashingDoodad, "Destroy")
// L620
ActorSend(ActorFromDoodad(gv_libraryHybrid), "AnimBracketStart Work Stand,Work,Start Stand,Work Stand,Work,End")
// L2798
ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000")
// L2831
ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000")
// L6777
ActorSend(ActorFromDoodad(DoodadFromId(120)), "AnimBracketStart WorkOn Birth Stand,Work Death")
// L7091
ActorSend(ActorFromDoodad(gv_libraryHybrid), "AnimBracketStop Work")
// L7119
ActorSend(libNtve_gf_MainActorofUnit(gv_preserverPrison01), "AnimBracketStart Work Stand,Work,Start Stand,Work Stand,Work,End")
// L7121
ActorSend(libNtve_gf_MainActorofUnit(gv_preserverPrison02), "AnimBracketStart Work Stand,Work,Start Stand,Work Stand,Work,End")
// L7123
ActorSend(libNtve_gf_MainActorofUnit(gv_preserverPrison03), "AnimBracketStart Work Stand,Work,Start Stand,Work Stand,Work,End")
// L7162
ActorSend(libNtve_gf_MainActorofUnit(gv_preserverPrison01), "AnimBracketStop Work")
// L7164
ActorSend(libNtve_gf_MainActorofUnit(gv_preserverPrison02), "AnimBracketStop Work")
// L325
ActorSend(lv_healActor, "Destroy")
// L960
ActorSend(ActorFromDoodad(DoodadFromId(482)), "AnimGroupApply Work Work,Start Work,End")
// L1021
ActorSend(ActorFromDoodad(DoodadFromId(482)), "AnimGroupRemove Work")
// L1083
ActorSend(ActorFromDoodad(DoodadFromId(482)), "AnimGroupRemove Work")
// L1148
ActorSend(ActorFromDoodad(DoodadFromId(482)), "AnimGroupRemove Work")
// L1210
ActorSend(ActorFromDoodad(DoodadFromId(482)), "AnimGroupRemove Work")
// L795
ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000")
// L803
ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000")
// L811
ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000")
// L4707
ActorSend(lv_birth, "SetTeamColor 0,66,255 0,66,255")
// L7200
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(1.0, 1.0, 1.0, 0.0))
// L7201
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(gv_c_PlaneHeight))
// L7257
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height))
// L7258
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(2.0, 2.0, 2.0, 0.0))
// L7263
ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height))