# Movie Function

Grammar — A movie function event with name functionName happens for Player player
FlagsNative | Event

This event is only usable if you play a movie texture on a model, and that movie texture has a .event file with the same name as the movie texture. The .event file can specify times when the movie should send an event to the trigger system. Each event in the .event file has a name that must be specified in the Function Name parameter if you want to respond to that event.

# Arguments

  • int — Player
  • string — Function Name

Returns — void

native void TriggerAddEventMovieFunction(
	trigger t,
	int player,
	string functionName,
);

Category: Cinematics / Movie

# Examples

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

void gt_TVNewsRaynor01Event02_Init () {
    gt_TVNewsRaynor01Event02 = TriggerCreate("gt_TVNewsRaynor01Event02_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event02, c_playerAny, "NewsRa1_02");
}

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

void gt_TVNewsRaynor01Event05_Init () {
    gt_TVNewsRaynor01Event05 = TriggerCreate("gt_TVNewsRaynor01Event05_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event05, c_playerAny, "NewsRa1_05");
}

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

void gt_TVNewsRaynor02Event03_Init () {
    gt_TVNewsRaynor02Event03 = TriggerCreate("gt_TVNewsRaynor02Event03_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event03, c_playerAny, "NewsRa2_03");
}

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

void gt_TVNewsRaynor02Event05_Init () {
    gt_TVNewsRaynor02Event05 = TriggerCreate("gt_TVNewsRaynor02Event05_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event05, c_playerAny, "NewsRa2_05");
}

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

void gt_TVNewsHanson01Event01_Init () {
    gt_TVNewsHanson01Event01 = TriggerCreate("gt_TVNewsHanson01Event01_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson01Event01, c_playerAny, "NewsHa1_01");
}

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

void gt_TVNewsHanson01Event03_Init () {
    gt_TVNewsHanson01Event03 = TriggerCreate("gt_TVNewsHanson01Event03_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson01Event03, c_playerAny, "NewsHa1_03");
}

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

void gt_TVNewsHanson02Event05_Init () {
    gt_TVNewsHanson02Event05 = TriggerCreate("gt_TVNewsHanson02Event05_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson02Event05, c_playerAny, "NewsHa2_05");
}

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

void gt_TVNewsHanson03aEvent02_Init () {
    gt_TVNewsHanson03aEvent02 = TriggerCreate("gt_TVNewsHanson03aEvent02_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent02, c_playerAny, "NewsHa3a_02");
}

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

void gt_TVNewsHanson03aEvent06_Init () {
    gt_TVNewsHanson03aEvent06 = TriggerCreate("gt_TVNewsHanson03aEvent06_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent06, c_playerAny, "NewsHa3a_06");
}

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

void gt_TVNewsHanson03bEvent06_Init () {
    gt_TVNewsHanson03bEvent06 = TriggerCreate("gt_TVNewsHanson03bEvent06_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson03bEvent06, c_playerAny, "NewsHa3b_06");
}

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

void gt_TVNewsRaynor01Event02_Init () {
    gt_TVNewsRaynor01Event02 = TriggerCreate("gt_TVNewsRaynor01Event02_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event02, c_playerAny, "NewsRa1_02");
}

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

void gt_TVNewsRaynor01Event05_Init () {
    gt_TVNewsRaynor01Event05 = TriggerCreate("gt_TVNewsRaynor01Event05_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event05, c_playerAny, "NewsRa1_05");
}

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

void gt_TVNewsRaynor02Event03_Init () {
    gt_TVNewsRaynor02Event03 = TriggerCreate("gt_TVNewsRaynor02Event03_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event03, c_playerAny, "NewsRa2_03");
}

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

void gt_TVNewsRaynor02Event05_Init () {
    gt_TVNewsRaynor02Event05 = TriggerCreate("gt_TVNewsRaynor02Event05_Func");
    TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event05, c_playerAny, "NewsRa2_05");
}

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

void gt_TVNewsHanson01Event01_Init () {
    gt_TVNewsHanson01Event01 = TriggerCreate("gt_TVNewsHanson01Event01_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson01Event01, c_playerAny, "NewsHa1_01");
}

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

void gt_TVNewsHanson01Event03_Init () {
    gt_TVNewsHanson01Event03 = TriggerCreate("gt_TVNewsHanson01Event03_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson01Event03, c_playerAny, "NewsHa1_03");
}

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

void gt_TVNewsHanson02Event05_Init () {
    gt_TVNewsHanson02Event05 = TriggerCreate("gt_TVNewsHanson02Event05_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson02Event05, c_playerAny, "NewsHa2_05");
}

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

void gt_TVNewsHanson03aEvent02_Init () {
    gt_TVNewsHanson03aEvent02 = TriggerCreate("gt_TVNewsHanson03aEvent02_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent02, c_playerAny, "NewsHa3a_02");
}

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

void gt_TVNewsHanson03aEvent06_Init () {
    gt_TVNewsHanson03aEvent06 = TriggerCreate("gt_TVNewsHanson03aEvent06_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent06, c_playerAny, "NewsHa3a_06");
}

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

void gt_TVNewsHanson03bEvent06_Init () {
    gt_TVNewsHanson03bEvent06 = TriggerCreate("gt_TVNewsHanson03bEvent06_Func");
    TriggerAddEventMovieFunction(gt_TVNewsHanson03bEvent06, c_playerAny, "NewsHa3b_06");
}