Pickup.ID

From Liberty Unleashed Wiki
Revision as of 17:43, 23 October 2010 by Force (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


This Pickup class member returns the ID of the given pickup.

Syntax

  1. Integer pickup.ID

Example

This will tell the player what pickup ID they just picked up.

  1.  
  2. function onPickupPickedUp( pPlayer, pPickup )
  3. {
  4. MessagePlayer( "Pickup ID: " + pPickup.ID, pPlayer );
  5. return 1;
  6. }
  7.  

Notes

The function MessagePlayer and event onPickupPickedUp were used in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox