onPickupRespawn

From Liberty Unleashed Wiki
Revision as of 12:46, 2 August 2011 by Stormeus (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 event is called a pickup has been respawned.

Syntax

  1. function onPickupRespawn( pickup )

Arguments

  • pickup - The pointer of the pickup thats been respawned

Returns

This event does not handle return values.

Example

This function tells a player a pickup has respawned.

  1.  
  2. function onPickupRespawn( pickup )
  3. {
  4. Message( pickup.ID + " has just respawned at " + pickup.Pos.x + ", " + pickup.Pos.y + "." );
  5. }
  6.  

Notes

The client functions Pickup.Pos and Message were used in this example. More information can be found on their corresponding pages.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox