UsePickup: Difference between revisions

From Multi Theft Auto: Wiki
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 edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Server client function}}
{{Server client function}}
This function is used to force a pickup
This function is used to simulate the player using a pickup


==Syntax==  
==Syntax==  

Revision as of 11:45, 28 February 2008

This function is used to simulate the player using 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 [-]
Server

This example creates a pickup after a player dies so that he drops his weapon.