Pickup.VirtualWorld
From Liberty Unleashed Wiki
This function sets or return the VirtualWorld of a pickup.
Syntax
int Pickup.VirtualWorld
Pickup.VirtualWorld = int world
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; } } }
Notes
The function Pickup.VirtualWorld and call onPlayerCommand were used in in this example. More info about them in corresponding pages.