From Liberty Unleashed Wiki
- pickup = CreatePickup( model, Vector )
- model - The Model of the pickup to be created.
- Vector - The Vector where you want the pickup to be created.
- function onPlayerCommand( player, cmd, text )
- if ( cmd == "healthpickup" )
- local pos = player.Pos;
- CreatePickup( 1362, Vector( pos.x, pos.y, pos.z ) );
This command will create a health pickup at the player's location.
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.