## XIII
Class XIIIDocumentPick

source: C:\XIII\XIII\Classes\XIIIDocumentPick.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Pickup
             |
             +--XIII.XIIIPickup
                |
                +--XIII.XIIIDocumentPick

Direct Known Subclasses:SkillDocumentPick

class XIIIDocumentPick
extends XIII.XIIIPickup

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Function Summary
`Inventory` | `SpawnCopy(Pawn Other)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIDocumentPick extends XIIIPickup;
    00005
    00006	//_____________________________________________________________________________
    00007	function inventory SpawnCopy(Pawn Other)
    00008	{
    00009	    local Controller P;
    00010	    local Inventory Copy;
    00011
    00012	    if ( Inventory != None )
    00013	    {
    00014	      Copy = Inventory;
    00015	      Inventory = None;
    00016	    }
    00017	    else
    00018	      Copy = spawn(InventoryType,Other,,,rot(0,0,0));
    00019
    00020	    Copy.GiveTo( Other );
    00021	    if( Level.Game.ShouldRespawn(self) )
    00022	      GotoState('Sleeping');
    00023	    else
    00024	    {
    00025	      Copy.event = event;
    00026	      Destroy();
    00027	    }
    00028	    return Copy;
    00029	}
    00030
    00031
    00032
    00033	defaultproperties
    00034	{
    00035	     InventoryType=Class'XIII.XIIIDocuments'
    00036	     PickupMessage="DOCUMENT"
    00037	     PickupSound=Sound'XIIIsound.Items.DossierPick1'
    00038	     StaticMesh=StaticMesh'MeshObjetsPickup.dossierPentagone'
    00039	     MessageClass=Class'XIII.XIIIImportantItemMessage'
    00040	}

End Source Code