# Last Created Actor by Message

Grammar — Last created actor by message
FlagsFunction

Returns the last actor successfully created by the user via cheat, data or script. Includes actors created by the Create message, but only if it is sent via cheat or script. Does not include AutoCreates, request creates, or Create messages in response to actor events.

Returns — actor

actor libNtve_gf_ActorLastCreatedSend();

Category: Actor / Create Actors

# Examples

mods/heroesmapmods/battlegroundmapmods/volskayasound.stormmodbase.stormdata/LibVLSS.galaxy:122

    SoundPlayForPlayer(SoundLink("UI_Game_Ping_Volskaya_Event_Start", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    ActorCreate(ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core), "UI_Game_Volskaya_CapturePoint_Capturing_Ally", null, null, null);
    libVLSS_gv_cPSounds[libGame_gv_teamOrderIndex_C].lv_ally_LoopingSound = libNtve_gf_ActorLastCreatedSend();
    ActorCreate(ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core), "UI_Game_Volskaya_CapturePoint_Capturing_Enemy", null, null, null);
    libVLSS_gv_cPSounds[libGame_gv_teamOrderIndex_C].lv_enemy_LoopingSound = libNtve_gf_ActorLastCreatedSend();

mods/heroesmapmods/battlegroundmapmods/volskayasound.stormmodbase.stormdata/LibVLSS.galaxy:124

    libVLSS_gv_cPSounds[libGame_gv_teamOrderIndex_C].lv_ally_LoopingSound = libNtve_gf_ActorLastCreatedSend();
    ActorCreate(ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core), "UI_Game_Volskaya_CapturePoint_Capturing_Enemy", null, null, null);
    libVLSS_gv_cPSounds[libGame_gv_teamOrderIndex_C].lv_enemy_LoopingSound = libNtve_gf_ActorLastCreatedSend();
    ActorSend(libVLSS_gv_cPSounds[libGame_gv_teamOrderIndex_C].lv_ally_LoopingSound, "SoundSetMuted 1 0");
    ActorSend(libVLSS_gv_cPSounds[libGame_gv_teamOrderIndex_C].lv_enemy_LoopingSound, "SoundSetMuted 1 0");

mods/heroesmapmods/battlegroundmapmods/volskayasound.stormmodbase.stormdata/LibVLSS.galaxy:128

    ActorSend(libVLSS_gv_cPSounds[libGame_gv_teamOrderIndex_C].lv_enemy_LoopingSound, "SoundSetMuted 1 0");
    ActorCreate(ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core), "UI_Game_Volskaya_CapturePoint_Capturing_Ally", null, null, null);
    libVLSS_gv_cPSounds[libGame_gv_teamChaosIndex_C].lv_ally_LoopingSound = libNtve_gf_ActorLastCreatedSend();
    ActorSend(libVLSS_gv_cPSounds[libGame_gv_teamChaosIndex_C].lv_ally_LoopingSound, "SetFilterPlayers");
    ActorCreate(ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core), "UI_Game_Volskaya_CapturePoint_Capturing_Enemy", null, null, null);

mods/heroesmapmods/battlegroundmapmods/volskayasound.stormmodbase.stormdata/LibVLSS.galaxy:131

    ActorSend(libVLSS_gv_cPSounds[libGame_gv_teamChaosIndex_C].lv_ally_LoopingSound, "SetFilterPlayers");
    ActorCreate(ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core), "UI_Game_Volskaya_CapturePoint_Capturing_Enemy", null, null, null);
    libVLSS_gv_cPSounds[libGame_gv_teamChaosIndex_C].lv_enemy_LoopingSound = libNtve_gf_ActorLastCreatedSend();
    ActorSend(libVLSS_gv_cPSounds[libGame_gv_teamChaosIndex_C].lv_enemy_LoopingSound, "SetFilterPlayers");
    ActorSend(libVLSS_gv_cPSounds[libGame_gv_teamChaosIndex_C].lv_ally_LoopingSound, "SoundSetMuted 1 0");