# Play Movie Texture On Unit Actor
Grammar — Play movie texture movieTexture on unit actor of unit
Flags —Action
Play a movie texture on the model of the main actor of the specified unit. The unit’s model must be set up to have a texture slot that matches the slot of the movie to play.
# Arguments
unit
— Unitstring
<gamelink::Texture> — Movie Texture
Returns — void
void libNtve_gf_PlayMovieTextureOnUnitActor(
unit lp_unit,
string lp_movieTexture,
);
# 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:13516
libNtve_gf_StopAllVideoTexturesOnUnit(gf_BriefingScreen(lp_roomID, lp_screen));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(lp_roomID, lp_screen), lp_movie);
libNtve_gf_SendActorMessageToUnit(gf_BriefingScreen(lp_roomID, lp_screen), "TextureVideoPlay video 30 Synced");
gv_briefingVideoPlaying = lp_movie;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:14063
}
libNtve_gf_PlayMovieTextureOnUnitActor(gv_marSaraTV, "video_static");
gf_RoomScenePrepare(ge_RoomID_RoomMarSara, ge_SceneType_TV);
libNtve_gf_CinematicMode(true, PlayerGroupAll(), 0.3);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:14091
gf_StopAllTransmissionConversation();
libNtve_gf_StopAllVideoTexturesOnUnit(gv_marSaraTV);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_marSaraTV, "video_static");
libNtve_gf_SendActorMessageToUnit(gv_marSaraTV, MakeMsgTextureVideoPlay("video", c_textureSlotComponentDefault, 30, c_textureVideoPlayFlagLooping, 0, ""));
libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), "AnimCancelActiveBlends ::Conversation");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:14132
}
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
gf_RoomScenePrepare(ge_RoomID_RoomCantina, ge_SceneType_TV);
libNtve_gf_CinematicMode(true, PlayerGroupAll(), 0.3);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:14176
gf_StopAllTransmissionConversation();
libNtve_gf_StopAllVideoTexturesOnUnit(gv_cantinaTV);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
libNtve_gf_SendActorMessageToUnit(gv_cantinaTV, MakeMsgTextureVideoPlay("video", c_textureSlotComponentDefault, 30, c_textureVideoPlayFlagLooping, 0, ""));
if ((lp_mission == libCamp_ge_MapID_MapTTychus05) && (gv_cantinaState == ge_CantinaStates_Normal)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:14246
gf_RemoveVisibleUnit(true, gf_BriefingScreen(ge_RoomID_RoomChar, ge_BriefingScreen_Main));
gf_RemoveVisibleUnit(true, gf_BriefingScreen(ge_RoomID_RoomChar, ge_BriefingScreen_Center));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(ge_RoomID_RoomChar, ge_BriefingScreen_Center), "video_static");
gf_PauseFlashing(true);
gf_PauseNewItemInfo(true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:33943
gf_BriefingPrepare(ge_RoomID_RoomBridge, ge_BriefingCamera_None, ge_ActorID_ActorNone, ge_ActorID_ActorNone, ge_ActorID_ActorNone, true, true, false, false);
libNtve_gf_StopAllVideoTexturesOnUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "video_static");
libNtve_gf_SendActorMessageToUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "TextureVideoPlay video 30 Looping,Synced");
gf_RemoveVisibleUnit(false, gf_ActorUnit(ge_ActorID_ActorRaynor));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34015
gf_BriefingPrepare(ge_RoomID_RoomBridge, ge_BriefingCamera_None, ge_ActorID_ActorRaynor, ge_ActorID_ActorHorner, ge_ActorID_ActorNone, true, true, true, true);
libNtve_gf_StopAllVideoTexturesOnUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "video_static");
libNtve_gf_SendActorMessageToUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "TextureVideoPlay video 30 Looping,Synced");
gf_RemoveVisibleUnit(false, gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Main));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:35109
libCamp_gf_HideStoryUI(false, true);
gf_ChangeRoom(ge_RoomID_RoomCantina, false);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
gf_RoomScenePrepare(ge_RoomID_RoomCantina, ge_SceneType_TV);
libNtve_gf_CinematicMode(true, PlayerGroupAll(), c_transitionDurationDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:35131
gf_StopAllTransmissionConversation();
libNtve_gf_StopAllVideoTexturesOnUnit(gv_cantinaTV);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
libNtve_gf_SendActorMessageToUnit(gv_cantinaTV, MakeMsgTextureVideoPlay("video", c_textureSlotComponentDefault, 30, c_textureVideoPlayFlagLooping, 0, ""));
UIClearMessages(PlayerGroupAll(), c_messageAreaSubtitle);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:13516
libNtve_gf_StopAllVideoTexturesOnUnit(gf_BriefingScreen(lp_roomID, lp_screen));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(lp_roomID, lp_screen), lp_movie);
libNtve_gf_SendActorMessageToUnit(gf_BriefingScreen(lp_roomID, lp_screen), "TextureVideoPlay video 30 Synced");
gv_briefingVideoPlaying = lp_movie;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:14063
}
libNtve_gf_PlayMovieTextureOnUnitActor(gv_marSaraTV, "video_static");
gf_RoomScenePrepare(ge_RoomID_RoomMarSara, ge_SceneType_TV);
libNtve_gf_CinematicMode(true, PlayerGroupAll(), 0.3);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:14091
gf_StopAllTransmissionConversation();
libNtve_gf_StopAllVideoTexturesOnUnit(gv_marSaraTV);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_marSaraTV, "video_static");
libNtve_gf_SendActorMessageToUnit(gv_marSaraTV, MakeMsgTextureVideoPlay("video", c_textureSlotComponentDefault, 30, c_textureVideoPlayFlagLooping, 0, ""));
libNtve_gf_SendActorMessageToUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), "AnimCancelActiveBlends ::Conversation");
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:14132
}
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
gf_RoomScenePrepare(ge_RoomID_RoomCantina, ge_SceneType_TV);
libNtve_gf_CinematicMode(true, PlayerGroupAll(), 0.3);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:14176
gf_StopAllTransmissionConversation();
libNtve_gf_StopAllVideoTexturesOnUnit(gv_cantinaTV);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
libNtve_gf_SendActorMessageToUnit(gv_cantinaTV, MakeMsgTextureVideoPlay("video", c_textureSlotComponentDefault, 30, c_textureVideoPlayFlagLooping, 0, ""));
if ((lp_mission == libCamp_ge_MapID_MapTTychus05) && (gv_cantinaState == ge_CantinaStates_Normal)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:14246
gf_RemoveVisibleUnit(true, gf_BriefingScreen(ge_RoomID_RoomChar, ge_BriefingScreen_Main));
gf_RemoveVisibleUnit(true, gf_BriefingScreen(ge_RoomID_RoomChar, ge_BriefingScreen_Center));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(ge_RoomID_RoomChar, ge_BriefingScreen_Center), "video_static");
gf_PauseFlashing(true);
gf_PauseNewItemInfo(true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:33943
gf_BriefingPrepare(ge_RoomID_RoomBridge, ge_BriefingCamera_None, ge_ActorID_ActorNone, ge_ActorID_ActorNone, ge_ActorID_ActorNone, true, true, false, false);
libNtve_gf_StopAllVideoTexturesOnUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "video_static");
libNtve_gf_SendActorMessageToUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "TextureVideoPlay video 30 Looping,Synced");
gf_RemoveVisibleUnit(false, gf_ActorUnit(ge_ActorID_ActorRaynor));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:34015
gf_BriefingPrepare(ge_RoomID_RoomBridge, ge_BriefingCamera_None, ge_ActorID_ActorRaynor, ge_ActorID_ActorHorner, ge_ActorID_ActorNone, true, true, true, true);
libNtve_gf_StopAllVideoTexturesOnUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center));
libNtve_gf_PlayMovieTextureOnUnitActor(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "video_static");
libNtve_gf_SendActorMessageToUnit(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "TextureVideoPlay video 30 Looping,Synced");
gf_RemoveVisibleUnit(false, gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Main));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:35109
libCamp_gf_HideStoryUI(false, true);
gf_ChangeRoom(ge_RoomID_RoomCantina, false);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
gf_RoomScenePrepare(ge_RoomID_RoomCantina, ge_SceneType_TV);
libNtve_gf_CinematicMode(true, PlayerGroupAll(), c_transitionDurationDefault);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:35131
gf_StopAllTransmissionConversation();
libNtve_gf_StopAllVideoTexturesOnUnit(gv_cantinaTV);
libNtve_gf_PlayMovieTextureOnUnitActor(gv_cantinaTV, "video_static");
libNtve_gf_SendActorMessageToUnit(gv_cantinaTV, MakeMsgTextureVideoPlay("video", c_textureSlotComponentDefault, 30, c_textureVideoPlayFlagLooping, 0, ""));
UIClearMessages(PlayerGroupAll(), c_messageAreaSubtitle);