# Create

Grammar — Create actor content
FlagsFunction

Constructs and returns a Create actor message. This message will create an actor. Content parameter is optional. Works on all actor types.

# Arguments

  • string — Actor
  • string — Content

Returns — string<actormsg>

string libNtve_gf_Create(
	string lp_actor,
	string lp_content,
);

Category: Actor / Message Constructors

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18157

    if ((CatalogEntryIsValid(c_gameCatalogSound, lv_sound) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_sound) == false)) {
        if ((CatalogEntryIsValid(c_gameCatalogSound, lv_soundWithSuffix) == true) && (CatalogEntryIsDefault(c_gameCatalogSound, lv_soundWithSuffix) == false)) {
            ActorSend(libNtve_gf_MainActorofUnit(lv_heroUnit), libNtve_gf_Create((libGame_gv_lootVoiceLineActor), (lv_soundWithSuffix)));
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18160

        }
        else {
            ActorSend(libNtve_gf_MainActorofUnit(lv_heroUnit), libNtve_gf_Create((libGame_gv_lootVoiceLineActor), (lv_sound)));
        }
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18241


    ActorScopeSend(lv_scope, "Signal LootSprayKill");
    ActorSend(ActorFromScope(lv_scope, "::Main"), libNtve_gf_Create(libCore_gv_mountModelActor3, (libGame_gv_players[lv_sprayingPlayer].lv_lootContent.lv_loot_Spray.lv_sprayModelID)));
    ActorSend(ActorFromScope(lv_scope, libCore_gv_mountModelActor3), libNtve_gf_SpraySet(lv_spray));
    if ((lv_mapID == "")) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18598

        ActorSend(lv_heroActor, "PhysicsTerminate");
        lv_mountModel = libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountModel;
        ActorSend(lv_heroActor, libNtve_gf_Create(lv_actorNameForMount, (lv_mountModel)));
        lv_mountActor = ActorFromActor(lv_heroActor, lv_actorNameForMount);
        libCore_gf_SendMountActorMessagesToActor(lv_mountIndex, lv_mountActor);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18621

    ActorSend(lv_heroActor, libNtve_gf_SetWalkAnimMoveSpeed(lv_mountWalkAnimMoveSpeed));
    ActorSend(lv_mountActor, libNtve_gf_Signal("MountSound"));
    ActorSend(lv_heroActor, libNtve_gf_Create((libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountUpFXActor), ""));
    if ((libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountSound != "")) {
        ActorSend(lv_heroActor, libNtve_gf_Create("MountDismountSound", (libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountSound)));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18623

    ActorSend(lv_heroActor, libNtve_gf_Create((libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountUpFXActor), ""));
    if ((libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountSound != "")) {
        ActorSend(lv_heroActor, libNtve_gf_Create("MountDismountSound", (libGame_gv_players[lv_mountIndex].lv_mountData.lv_mountSound)));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18627


    if ((libGame_gv_players[lv_mountIndex].lv_mountData.lv_loopingSound != "")) {
        ActorSend(lv_heroActor, libNtve_gf_Create("MountLoopingSound", (libGame_gv_players[lv_mountIndex].lv_mountData.lv_loopingSound)));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18631


    if ((libGame_gv_players[lv_mountIndex].lv_mountData.lv_stationarySound != "")) {
        ActorSend(lv_heroActor, libNtve_gf_Create("MountStationarySound", (libGame_gv_players[lv_mountIndex].lv_mountData.lv_stationarySound)));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18635


    if ((libGame_gv_players[lv_mountIndex].lv_mountData.lv_movingSound != "")) {
        ActorSend(lv_heroActor, libNtve_gf_Create("MountMovingSound", (libGame_gv_players[lv_mountIndex].lv_mountData.lv_movingSound)));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18735

    ActorSend(lv_heroActor, libNtve_gf_SetWalkAnimMoveSpeed(lv_heroWalkAnimMoveSpeed));
    if ((UnitIsAlive(lv_dismountingUnit) == true)) {
        ActorSend(lv_heroActor, libNtve_gf_Create((libGame_gv_players[lv_mountIndex].lv_mountData.lv_dismountFXActor), ""));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10791

            lv_heroUnit = libGame_gv_players[lv_triggeringPlayer].lv_heroUnit;
            if ((UnitIsAlive(lv_heroUnit) == true)) {
                ActorSend(libNtve_gf_MainActorofUnit(lv_heroUnit), libNtve_gf_Create((libUIUI_gv_uIDebugPanelVoiceLineActor), lv_soundID));
            }
            else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10811

                lv_heroUnit = libGame_gv_players[lv_triggeringPlayer].lv_heroUnit;
                if ((UnitIsAlive(lv_heroUnit) == true)) {
                    ActorSend(libNtve_gf_MainActorofUnit(lv_heroUnit), libNtve_gf_Create((libUIUI_gv_uIDebugPanelVoiceLineActor), lv_soundID));
                }
                else {