# 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.sc2campaign

MapScript.galaxy

// L37595
TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event02, c_playerAny, "NewsRa1_02")
// L37623
TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event05, c_playerAny, "NewsRa1_05")
// L37719
TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event03, c_playerAny, "NewsRa2_03")
// L37751
TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event05, c_playerAny, "NewsRa2_05")
// L37856
TriggerAddEventMovieFunction(gt_TVNewsHanson01Event01, c_playerAny, "NewsHa1_01")
// L37888
TriggerAddEventMovieFunction(gt_TVNewsHanson01Event03, c_playerAny, "NewsHa1_03")
// L37984
TriggerAddEventMovieFunction(gt_TVNewsHanson02Event05, c_playerAny, "NewsHa2_05")
// L38081
TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent02, c_playerAny, "NewsHa3a_02")
// L38109
TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent06, c_playerAny, "NewsHa3a_06")
// L38207
TriggerAddEventMovieFunction(gt_TVNewsHanson03bEvent06, c_playerAny, "NewsHa3b_06")
// L37595
TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event02, c_playerAny, "NewsRa1_02")
// L37623
TriggerAddEventMovieFunction(gt_TVNewsRaynor01Event05, c_playerAny, "NewsRa1_05")
// L37719
TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event03, c_playerAny, "NewsRa2_03")
// L37751
TriggerAddEventMovieFunction(gt_TVNewsRaynor02Event05, c_playerAny, "NewsRa2_05")
// L37856
TriggerAddEventMovieFunction(gt_TVNewsHanson01Event01, c_playerAny, "NewsHa1_01")
// L37888
TriggerAddEventMovieFunction(gt_TVNewsHanson01Event03, c_playerAny, "NewsHa1_03")
// L37984
TriggerAddEventMovieFunction(gt_TVNewsHanson02Event05, c_playerAny, "NewsHa2_05")
// L38081
TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent02, c_playerAny, "NewsHa3a_02")
// L38109
TriggerAddEventMovieFunction(gt_TVNewsHanson03aEvent06, c_playerAny, "NewsHa3a_06")
// L38207
TriggerAddEventMovieFunction(gt_TVNewsHanson03bEvent06, c_playerAny, "NewsHa3b_06")