OnPlayerLogout: Difference between revisions
Jump to navigation
Jump to search
(created.) |
(No difference)
|
Revision as of 07:48, 8 February 2009
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 player that logged out.
Example
This example displays a message if the player logs out.
function loggedOut() outputChatBox( "You have successfully logged out!", source ) end addEventHandler("onPlayerLogout",getRootElement(),loggedOut)
See Also
Client events
Event functions
Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled