# Apply Global Texture Group

Grammar — Apply the texture props textureProps globally
FlagsNative | Action

Applies texture props globally. If a model’s data is configured for texture swapping, and there is a texture available to the model with the global props, then that texture will be used.

# Arguments

  • string — Texture Props

Returns — void

native void ActorTextureGroupApplyGlobal(
	string textureProps,
);

Category: Actor / Utility

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16072

    gf_Init02BRoomsArmoryWindowPlanets2(libCamp_ge_MapID_MapTHanson01);
    if ((gf_RoomIsEnabled(ge_RoomID_RoomMarSara) == true)) {
        ActorTextureGroupApplyGlobal("marsarabar");
    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomBridge) == true)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16075

    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomBridge) == true)) {
        ActorTextureGroupApplyGlobal("bridge");
    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomChar) == true)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16078

    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomChar) == true)) {
        ActorTextureGroupApplyGlobal("battlefield");
    }
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19854

    gf_ChangeVisibleUnits(gf_RoomUnits(ge_RoomID_RoomBridge));
    gf_PrepareRoomActors(ge_RoomID_RoomBridge, true);
    ActorTextureGroupApplyGlobal("bridge");
    gf_BridgeActorAnimation(true, true, true);
    libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(UnitFromId(1029)), "Cover");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19896

    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorTosh), "Cover", true);
    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorHillMercContact), "Cover", true);
    ActorTextureGroupApplyGlobal("cantina");
    if ((gv_cantinaState == ge_CantinaStates_Broken)) {
        gf_TurnAnimationPropertiesOnOffInstantly(gv_cantinaProps, "A", true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19980

    libNtve_gf_SendActorMessageToUnit(gv_charMarineA, "AnimBaselineStart");
    libNtve_gf_SendActorMessageToUnit(gv_charMarineB, "AnimBaselineStart");
    ActorTextureGroupApplyGlobal("battlefield");
    TriggerExecute(gt_CharArtifactAnimation, true, false);
    gf_CharActorAnimation(true, true, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:20179

    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorRaynor), "Cover", true);
    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorTychus), "Cover", true);
    ActorTextureGroupApplyGlobal("marsarabar");
    gf_PreparePinboard(ge_Pinboard_PBMarSara);
    libCamp_gf_ChangeAmbience("Ambience_MarSaraBarV1");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:16072

    gf_Init02BRoomsArmoryWindowPlanets2(libCamp_ge_MapID_MapTHanson01);
    if ((gf_RoomIsEnabled(ge_RoomID_RoomMarSara) == true)) {
        ActorTextureGroupApplyGlobal("marsarabar");
    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomBridge) == true)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:16075

    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomBridge) == true)) {
        ActorTextureGroupApplyGlobal("bridge");
    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomChar) == true)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:16078

    }
    else if ((gf_RoomIsEnabled(ge_RoomID_RoomChar) == true)) {
        ActorTextureGroupApplyGlobal("battlefield");
    }
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19854

    gf_ChangeVisibleUnits(gf_RoomUnits(ge_RoomID_RoomBridge));
    gf_PrepareRoomActors(ge_RoomID_RoomBridge, true);
    ActorTextureGroupApplyGlobal("bridge");
    gf_BridgeActorAnimation(true, true, true);
    libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(UnitFromId(1029)), "Cover");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19896

    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorTosh), "Cover", true);
    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorHillMercContact), "Cover", true);
    ActorTextureGroupApplyGlobal("cantina");
    if ((gv_cantinaState == ge_CantinaStates_Broken)) {
        gf_TurnAnimationPropertiesOnOffInstantly(gv_cantinaProps, "A", true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19980

    libNtve_gf_SendActorMessageToUnit(gv_charMarineA, "AnimBaselineStart");
    libNtve_gf_SendActorMessageToUnit(gv_charMarineB, "AnimBaselineStart");
    ActorTextureGroupApplyGlobal("battlefield");
    TriggerExecute(gt_CharArtifactAnimation, true, false);
    gf_CharActorAnimation(true, true, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:20179

    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorRaynor), "Cover", true);
    gf_TurnAnimationPropertiesOnOffInstantly(gf_ActorUnit(ge_ActorID_ActorTychus), "Cover", true);
    ActorTextureGroupApplyGlobal("marsarabar");
    gf_PreparePinboard(ge_Pinboard_PBMarSara);
    libCamp_gf_ChangeAmbience("Ambience_MarSaraBarV1");