OnExit Event

Definition

function OnExit()

end

Description

This event is specific to the Video object. Suppose a script that has an OnExit() event is attached to a video object. In this case, the OnExit() event is called when the video ends or is stopped by the user by pressing a key.

Example

function OnExit()
    PrintConsole("\nOnExit() Event was called")
end
adminOnExit Event