Server.Mobiles.PackAnimal.TryPackOpen C# (CSharp) Méthode

TryPackOpen() public static méthode

public static TryPackOpen ( BaseCreature animal, Mobile from ) : void
animal BaseCreature
from Mobile
Résultat void
        public static void TryPackOpen( BaseCreature animal, Mobile from )
        {
            if ( animal.IsDeadPet )
                return;

            Container item = animal.Backpack;

            if ( item != null )
                from.Use( item );
        }

Usage Example

Exemple #1
0
 public override void OnDoubleClick(Mobile from)
 {
     PackAnimal.TryPackOpen(this, from);
 }
All Usage Examples Of Server.Mobiles.PackAnimal::TryPackOpen