UsePickup: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
==Example==  
==Example==  
<section name="Server" class="server" show="true">
<section name="Server" class="server" show="true">
This example creates a pickup after a player dies so that he drops his weapon.
Missing example...
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">



Revision as of 11:47, 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

Missing example...