OnPickupPickedUp: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==onPickupPickup==
==Description==
Checks if a object is picked up.
==Syntax==
<code>function onPickupPickedUp( player, pickup )</code>
==Example==


<source lang="squirrel">
function onPickupPickedUp( player, pickup )
function onPickupPickedUp( player, pickup )
{
{
Line 7: Line 12:
  {
  {
   MessagePlayer( "You earn 50$", player );
   MessagePlayer( "You earn 50$", player );
player.Cash += 50;
  player.Cash += 50;
  }
}
}
}
</source>


[[Category:Needs_Description]]
== Related Functions ==
 
{{Scripting/Squirrel/Events/Pickup_Events}}
[[Category:Scripting/Squirrel/Events/Pickup_Events]]

Latest revision as of 22:12, 30 January 2017

Description

Checks if a object is picked up.

Syntax

function onPickupPickedUp( player, pickup )

Example

function onPickupPickedUp( player, pickup )
{

if ( pickup.Model == 408 ) 
 {
  MessagePlayer( "You earn 50$", player );
  player.Cash += 50;
 }
}

Related Functions