Squirrel/Server/Functions/Pickups/VirtualWorld
From Liberty Unleashed Wiki
(Difference between revisions)
Line 37: | Line 37: | ||
=== Notes === | === Notes === | ||
− | The function [[Squirrel/Server/Functions/ | + | The function [[Squirrel/Server/Functions/Pickups/VirtualWorld|Pickup.VirtualWorld]] and call [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] were used in in this example. More info about them in corresponding pages. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Pickups}} | {{Squirrel/Server/Functions/Pickups}} |
Latest revision as of 19:22, 3 March 2015
This function sets or return the VirtualWorld of a pickup.
[edit] Syntax
int Pickup.VirtualWorld
Pickup.VirtualWorld = int world
[edit] Example
Get the VirtualWorld of a Pickup
function onPlayerCommand ( pPlayer, szCommand, szParams ) { switch ( szCommand ) { case "get": { local Pickup = FindPickup ( 0 ); if ( Pickup ) { MessagePlayer ( "VirtualWorld: " + Pickup.VirtualWorld, pPlayer ); return; } MessagePlayer ( "No pickup with id 0 found!", pPlayer ); return; } } }
[edit] Notes
The function Pickup.VirtualWorld and call onPlayerCommand were used in in this example. More info about them in corresponding pages.