Squirrel/Server/Functions/Pickups/Respawn

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
(Syntax)
 
Line 4: Line 4:
  
 
== Syntax ==
 
== Syntax ==
<code>bool object.Respawn()</code>
+
<code>bool Pickup.Respawn()</code>
  
 
== Example ==
 
== Example ==

Latest 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.

[edit] Syntax

  1. bool Pickup.Respawn()

[edit] 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.  

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox