UsePickup

From Multi Theft Auto: Wiki
Revision as of 23:57, 12 February 2008 by Lil Toady (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 [-]
Server

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