OnCutsceneAbort

From NWN Lexicon
Jump to: navigation, search

OnCutsceneAbort

This event fires when a PC tries to cancel a cutscene. Can be used to take the PC out of cutscene mode, remove cutscene invisibility from him, clear all cutscene objects of their action queues, and set the game state to the way it would be when the cutscene finished normally.


Trigger

A player who is in SetCutsceneMode hits the escape button.


Function(s)

GetLastPCToCancelCutscene() - the player who hit the escape button


Remarks

Simply hitting escape while in a cutscene doesn't do anything except fire this event. You'll have to script everything yourself to take the PC out of the cutscene, including all cutscene objects of their action queues, SetCutsceneMode to FALSE, and remove invisibily effects from the PC if applied.


See Also

functions: 

GetLastPCToCancelCutscene()