OnPickupUse: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This event is triggered when a player stands on a pickup while not in a vehicle. | This event is triggered when a player stands on a pickup while not in a vehicle. | ||
Line 8: | Line 6: | ||
onPickupUse ( player player ) | onPickupUse ( player player ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Canceling=== | |||
If this event is [[Events#Canceling|canceled]], the player will not be given the item they picked up. | |||
==Example== | ==Example== |
Revision as of 11:07, 11 September 2006
This event is triggered when a player stands on a pickup while not in a vehicle.
Syntax
onPickupUse ( player player )
Canceling
If this event is canceled, the player will not be given the item they picked up.
Example
addEventHandler ( "onPickupUse", getRootElement(), "pickupUse" ) function pickupUse ( thePlayer ) outputChatBox ( getClientName ( thePlayer ) .. " picked up a pickup!" ) end