# Texture Slot Component
Grammar — Slot component type of texture
Flags —Native
|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);
# Related
Category: Actor / Utility
- Actor Get Text —
text
— ActorGetText - Actor From Reference —
actor
— ActorRefGet - Actor Scope Get Text —
text
— ActorScopeGetText - Actor From —
actor
— ActorFrom - Actor From Actor —
actor
— ActorFromActor - Actor From Doodad —
actor
— ActorFromDoodad - Actor From Portrait —
actor
— ActorFromPortrait - Actor From Dialog Item —
actor
— ActorFromDialogControl - Actor From Scope —
actor
— ActorFromScope - Actor From Unit —
actor
— libNtve_gf_MainActorofUnit - Actor Scope From —
actorscope
— ActorScopeFrom - Actor Scope From Actor —
actorscope
— ActorScopeFromActor - Actor Scope From Portrait —
actorscope
— ActorScopeFromPortrait - Actor Scope From Dialog Item —
actorscope
— ActorScopeFromDialogControl - Actor Scope From Unit —
actorscope
— ActorScopeFromUnit - Texture Slot Component —
int
— TextureGetSlotComponent - Texture Slot Name —
string
— TextureGetSlotName - Actor Set Reference —
void
— ActorRefSet - Apply Global Texture Group —
void
— ActorTextureGroupApplyGlobal - Remove Global Texture Group —
void
— ActorTextureGroupRemoveGlobal - Push Texture Group —
void
— ActorTextureGroupPush - Pop Texture Group —
void
— ActorTextureGroupPop - Make Actor Face Angle —
void
— libNtve_gf_MakeModelFaceAngle - Play Movie Texture On Unit Actor —
void
— libNtve_gf_PlayMovieTextureOnUnitActor - Stop All Video Textures On Unit —
void
— libNtve_gf_StopAllVideoTexturesOnUnit - Show/Hide Doodads In Region —
void
— libNtve_gf_ShowHideDoodadsInRegion - Actor Add Orient Update —
void
— ActorAddOrientUpdate
# Examples
campaigns/liberty.sc2campaign — base.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.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)));
}
mods/core.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1087
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoSetFrame(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_frame);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1093
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoSetPaused(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_pauseState);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1099
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoSetTime(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_time);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1105
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoStop(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture));
}
mods/core.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:982
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoSetFrame(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_frame);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:988
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoSetPaused(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_pauseState);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:994
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoSetTime(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture), lp_time);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1000
// Automatic Variable Declarations
// Implementation
return MakeMsgTextureVideoStop(TextureGetSlotName(lp_texture), TextureGetSlotComponent(lp_texture));
}