OnPlayerVoiceStop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Server event}} | {{Server event}} | ||
__NOTOC__ | __NOTOC__ | ||
This event is triggered when a player stops talking through voice chat. | This event is triggered when a player stops talking through voice chat. | ||
{{Important Note|This event should only be used as a low-level function for advanced users. For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]}} | |||
==Parameters== | ==Parameters== | ||
Line 13: | Line 13: | ||
This example outputs to the world that the player stopped talking. | This example outputs to the world that the player stopped talking. | ||
<syntaxhighlight lang="lua">addEventHandler("onPlayerVoiceStop",root,function() | <syntaxhighlight lang="lua">addEventHandler("onPlayerVoiceStop",root,function() | ||
outputChatBox(getPlayerName(source) | outputChatBox(getPlayerName(source).." has stopped talking.",root) | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{See also/Server event|Player events}} | {{See also/Server event|Player events}} |
Latest revision as of 06:01, 11 August 2019
This event is triggered when a player stops talking through voice chat.
Important Note: This event should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource |
Parameters
No parameters.
Source
The source of this event is the player element that just stopped talking through voice chat.
Example
This example outputs to the world that the player stopped talking.
addEventHandler("onPlayerVoiceStop",root,function() outputChatBox(getPlayerName(source).." has stopped talking.",root) end)
See Also
Player events
- onPlayerACInfo
- onPlayerBan
- onPlayerChangeNick
- onPlayerChat
- onPlayerClick
- onPlayerCommand
- onPlayerConnect
- onPlayerContact
- onPlayerDamage
- onPlayerJoin
- onPlayerLogin
- onPlayerLogout
- onPlayerMarkerHit
- onPlayerMarkerLeave
- onPlayerModInfo
- onPlayerMute
- onPlayerNetworkStatus
- onPlayerPickupHit
- onPlayerPickupLeave
- onPlayerPickupUse
- onPlayerPrivateMessage
- onPlayerQuit
- onPlayerScreenShot
- onPlayerSpawn
- onPlayerStealthKill
- onPlayerTarget
- onPlayerUnmute
- onPlayerVehicleEnter
- onPlayerVehicleExit
- onPlayerVoiceStart
- onPlayerVoiceStop
- onPlayerWasted
- onPlayerWeaponFire
- onPlayerWeaponSwitch
Event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled