EndGame(string)
Ends the currently running game.
void EndGame( string sEndMovie );
Parameters
sEndMovie
File name (without ".bik" extension) found in "movies" subdirectory.
Description
End the currently running game, play sEndMovie, then returns all players to the game's main menu. sEndMovie must be the file name of the movie to play, without the ".bik" file name extension, found in the "movies" subdirectory under the NWN installation folder. Specifying a file name that does not exist causes the "credits.bik" movie to be played.
After any movie has completed playing, the movie "credits.bik" will automatically play.
Version
1.28
Example
// Example 1 - Ends the game using the Ending movie // "Ending.bik" found under the "movies" directory. // yes placing this in a module's OnModuleLoad (found // under "Edit > Module Properties" on the Aurora Toolset) // does indeed cause the movie to play when the module // loads void main() { EndGame("Ending"); }
See Also
categories: | Module Functions |
author: Brett Lathrope, editor: Charles Feduke, additional contributor(s): Mark, Max Aller
Send comments on this topic.