foreach (GameKeepGuard guard in this.Keep.Guards.Values)
{
if (guard == null)
break;
if (guard.PatrolGroup != null)
continue;
if (guard.HookPoint != null) continue;
if (guard.Position == null) continue;
if (guard.Position.Height > guard.Component.Height)
guard.RemoveFromWorld();
else
{
if (guard.Position.Height <= guard.Component.Height &&
guard.ObjectState != GameObject.eObjectState.Active && !guard.IsRespawning)
guard.AddToWorld();
}
}
Users browsing this forum: No registered users and 1 guest