Squirrel/Client/Events/Pickup/onPickupRespawn
From Liberty Unleashed Wiki
(Difference between revisions)
(Added example) |
m (Modified example) |
||
Line 16: | Line 16: | ||
== Example == | == Example == | ||
− | This function | + | This function tells a player a pickup has respawned. |
<code lang="squirrel"> | <code lang="squirrel"> | ||
function onPickupRespawn( pickup ) | function onPickupRespawn( pickup ) | ||
{ | { | ||
− | + | Message( pickup.ID + " has just respawned at " + pickup.Pos.x + ", " + pickup.Pos.y + "." ); | |
− | + | ||
} | } | ||
</code> | </code> | ||
Line 28: | Line 27: | ||
=== Notes === | === Notes === | ||
− | The client functions [[Squirrel/Client/Functions/Pickups/Pos|Pickup | + | The client functions [[Squirrel/Client/Functions/Pickups/Pos|Pickup.Pos]] and [[Squirrel/Client/Functions/Messages/Message|Message]] were used in this example. More information can be found on their corresponding pages. |
== Related Events == | == Related Events == | ||
{{Squirrel/Client/Events/Pickups}} | {{Squirrel/Client/Events/Pickups}} |
Latest revision as of 12:46, 2 August 2011
This event is called a pickup has been respawned.
[edit] Syntax
function onPickupRespawn( pickup )
[edit] Arguments
- pickup - The pointer of the pickup thats been respawned
[edit] Returns
This event does not handle return values.
[edit] Example
This function tells a player a pickup has respawned.
function onPickupRespawn( pickup ) { Message( pickup.ID + " has just respawned at " + pickup.Pos.x + ", " + pickup.Pos.y + "." ); }
[edit] Notes
The client functions Pickup.Pos and Message were used in this example. More information can be found on their corresponding pages.
[edit] Related Events
- onPickupPickedUp
- onPickupRespawn