UsePickup: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server client function}} This function is used to force a pickup ==Syntax== <syntaxhighlight lang="lua"> bool usePickup ( pickup thePickup, player thePlayer ) </syntaxhighlight> ===Required Arg...) |
(No difference)
|
Revision as of 23:57, 12 February 2008
This function is used to force a pickup
Syntax
bool usePickup ( pickup thePickup, player thePlayer )
Required Arguments
- thePickup: The pickup element to be picked up/used.
- thePlayer: The player to use the pickup.
Example
Click to collapse [-]
ServerThis example creates a pickup after a player dies so that he drops his weapon.
- createPickup
- getPickupAmmo
- getPickupAmount
- getPickupRespawnInterval
- getPickupType
- getPickupWeapon
- isPickupSpawned
- setPickupRespawnInterval
- setPickupType
- usePickup