Exemplo n.º 1
0
 /// <summary>
 /// Returns whether the EntityAIBase should begin execution.
 /// </summary>
 public override bool ShouldExecute()
 {
     if (!base.ShouldExecute())
     {
         return(false);
     }
     else
     {
         return(!TargetDoor.Func_48213_h(TheEntity.WorldObj, EntityPosX, EntityPosY, EntityPosZ));
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns whether an in-progress EntityAIBase should continue executing
        /// </summary>
        public override bool ContinueExecuting()
        {
            double d = TheEntity.GetDistanceSq(EntityPosX, EntityPosY, EntityPosZ);

            return(Field_48329_i >= 0 && !TargetDoor.Func_48213_h(TheEntity.WorldObj, EntityPosX, EntityPosY, EntityPosZ) && d < 4D);
        }