# Texture Slot Component

Grammar — Slot component type of texture
FlagsNative | Function

Query a texture and returns which component this texture belongs to. (Diffuse, Normal, Specular or Emissive)

# Arguments

  • string<gamelink::Texture> — Texture

Returns — int

native int TextureGetSlotComponent(string textureLink);

Category: Actor / Utility

# Examples

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

    gf_RoomSceneClearAll();
    if ((gv_briefingVideoPlaying != null)) {
        ActorSend(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Center)), MakeMsgTextureVideoStop(TextureGetSlotName(gv_briefingVideoPlaying), TextureGetSlotComponent(gv_briefingVideoPlaying)));
    }

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

    gf_RoomSceneClearAll();
    if ((gv_briefingVideoPlaying != null)) {
        ActorSend(libNtve_gf_MainActorofUnit(gf_BriefingScreen(lp_room, ge_BriefingScreen_Center)), MakeMsgTextureVideoStop(TextureGetSlotName(gv_briefingVideoPlaying), TextureGetSlotComponent(gv_briefingVideoPlaying)));
    }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1081

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoPlay(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_fPS, lp_textureVideoPlayFlags, lp_soundType, lp_attachQuery);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1087

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoSetFrame(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_frame);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1093

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoSetPaused(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_pauseState);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1099

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoSetTime(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_time);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1105

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoStop(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:976

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoPlay(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_fPS, lp_textureVideoPlayFlags, lp_soundType, lp_attachQuery);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:982

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoSetFrame(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_frame);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:988

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoSetPaused(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_pauseState);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:994

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoSetTime(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_time);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1000

    // Automatic Variable Declarations
    // Implementation
    return MakeMsgTextureVideoStop(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture));
}