Squirrel/Server/Functions/Pickups/Respawn

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|Pickup.Respawn}} __NOTOC__ This ''Pickup'' class member respawns the given pickup. == Syntax == <code>bool object.Respawn()</code> == Example == {{Squirrel/Ne…')
 
(Example)
Line 8: Line 8:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
+
This will respawn the pickup that the player just passed through.
Explanation for the example
+
  
 
<code lang="squirrel">
 
<code lang="squirrel">
-- Todo
+
function onPickupPickedUp( pPlayer, pPickup )
 +
{
 +
pPickup.Respawn();
 +
 +
return 1;
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- List of used functions and other notes here.  
+
The event [[Squirrel/Server/Events/Pickup/onPickupPickedUp|onPickupPickedUp]] was used in this example. More info about this in the corresponding page.
 
+
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Pickups}}
 
{{Squirrel/Server/Functions/Pickups}}

Revision as of 17:59, 23 October 2010

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


This Pickup class member respawns the given pickup.

Syntax

  1. bool object.Respawn()

Example

This will respawn the pickup that the player just passed through.

  1.  
  2. function onPickupPickedUp( pPlayer, pPickup )
  3. {
  4. pPickup.Respawn();
  5. return 1;
  6. }
  7.  

Notes

The event onPickupPickedUp was used in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox