onClientPickupLeave
Client-side
Server-side
Shared
This event triggers whenever a pickup is left clientside.
Parameters
player thePlayer, bool matchingDimension
- thePlayer: the player that left the pickup
- matchingDimension: true if thePlayer is in the same dimension as the pickup, false otherwise.
Source
element: The source of this event is the pickup that was left.
Code Examples
client
This example outputs a message whenever a player leaves a pickup locally.
local function clientPickupLeave(thePlayer, matchingDimension) outputChatBox("* "..getPlayerName(thePlayer).." left a pickup!", 255, 0, 0)endaddEventHandler("onClientPickupLeave", root, clientPickupLeave)
See Also
Pickup Events
- onClientPickupLeave
- onClientPickupHit
- onPickupHit
- onPickupLeave
- onPickupSpawn
- onPickupUse