OnPickupPickedUp: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
} | } | ||
</source> | </source> | ||
== 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
- onPickupClaimPicked( player, pickup )
- onPickupPickedUp( player, pickup )
- onPickupRespawn( pickup )