Server.Targeting.Target.Timeout C# (CSharp) Méthode

Timeout() public méthode

public Timeout ( Mobile from ) : void
from Mobile
Résultat void
        public void Timeout( Mobile from )
        {
            CancelTimeout();
            from.ClearTarget();

            Cancel( from );

            OnTargetCancel( from, TargetCancelType.Timeout );
            OnTargetFinish( from );
        }

Usage Example

Exemple #1
0
 protected override void OnTick()
 {
     if (m_Mobile.Target == m_Target)
     {
         m_Target.Timeout(m_Mobile);
     }
 }