OnClientLogout: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{Server event}} | {{Server event}} | ||
{{DeprecatedWithAlt|onPlayerLogout|}} | |||
__NOTOC__ | __NOTOC__ | ||
This event is triggered when a user logs out of their account in-game. | This event is triggered when a user logs out of their account in-game. |
Revision as of 23:18, 21 October 2011
This event is triggered when a user logs out of their account in-game.
Parameters
account thePreviousAccount, account theCurrentAccount
- thePreviousAccount: The account the client was logged in as
- theCurrentAccount: The account the client is a part of now (usually a guest account)
Source
The source of this event is the client element that logged out. For example a player.
Example
This example displays a message if the client logs out.
function loggedOut() outputChatBox( "You have successfully logged out!", source ) end addEventHandler("onClientLogout",getRootElement(),loggedOut)
See Also
Client events
Event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled