bool IsDropBoxOpen(BasePlayer player, BaseEntity entity) { if (entity is DropBox) { DropBox dropboxFront = entity as DropBox; if (dropboxFront.PlayerInfront(player)) { return(true); } return(false); } return(false); }