Иконка ресурса

FREE NpcTarget : 1.0.4 1.0.4

Нет прав для скачивания
C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
namespace Oxide.Plugins
{
    [Info("NPC Target", "misticos", "1.0.4")]
    [Description("Prevent NPCs from targeting each other")]
    class NpcTarget : RustPlugin
    {
        private object OnNpcTarget(BaseEntity attacker, BaseEntity entity)
        {
            if (IsNpc(entity))
                return true;

            return null;
        }

        private object CanBradleyApcTarget(BradleyAPC attacker, BaseEntity entity)
        {
            if (IsNpc(entity))
                return false;

            return null;
        }

        private bool IsNpc(BaseEntity entity) =>
            entity != null && entity.IsNpc;
    }
}

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху