Squirrel/Server/Events/Pickup/onPickupRespawn

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|onPickupRespawn}} This is called when a pickup respawns. == Syntax == <code>function onPickupRespawn( Pickup pickup )</code> === Arguments === * '''pickup'''…')
 

Latest revision as of 16:38, 4 November 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This is called when a pickup respawns.

[edit] Syntax

  1. function onPickupRespawn( Pickup pickup )

[edit] Arguments

  • pickup - The pickup which respawned

[edit] Returns

This event does not handle return values.

[edit] Example

This example will print a message to the server console when a pickup respawns.

  1.  
  2. function onPickupRespawn( pickup )
  3. {
  4. print( "Pickup " + pickup.ID + " respawned." );
  5. return 1;
  6. }
  7.  

[edit] Notes

The functions Pickup.ID and print were used in this example. More info about them can be found in the corresponding pages.

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox