# Play Movie Texture On Unit Actor

Grammar — Play movie texture movieTexture on unit actor of unit
FlagsAction

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 — Unit
  • string<gamelink::Texture> — Movie Texture

Returns — void

void libNtve_gf_PlayMovieTextureOnUnitActor(
	unit lp_unit,
	string lp_movieTexture,
);

Category: Actor / Utility

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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);