Squirrel/Server/Functions/Pickups/Respawn
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
(→Syntax) |
||
Line 4: | Line 4: | ||
== Syntax == | == Syntax == | ||
− | <code>bool | + | <code>bool Pickup.Respawn()</code> |
== Example == | == Example == |
Latest revision as of 17:59, 23 October 2010
This Pickup class member respawns the given pickup.
[edit] Syntax
bool Pickup.Respawn()
[edit] Example
This will respawn the pickup that the player just passed through.
function onPickupPickedUp( pPlayer, pPickup ) { pPickup.Respawn(); return 1; }
[edit] Notes
The event onPickupPickedUp was used in this example. More info about this in the corresponding page.