Pickup.Model

From Liberty Unleashed Wiki
Revision as of 17:57, 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 Model of the given pickup.

Syntax

  1. Integer pickup.Model

Example

This will tell the player what pickup model they just collected

  1.  
  2. function onPickupPickedUp( pPlayer, pPickup )
  3. {
  4. MessagePlayer( "Pickup Model: " + pPickup.Model, 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