Shared.lua
ENT.Type = "ai" -- What type of entity is it, in this case, it's an AI.
ENT.Base = "base_ai" -- This entity is based on "base_ai"
-- остальное
init.lua
function ENT:Initialize()
self:SetModel("models/error")
self:PhysicsInit(SOLID_BBOX)
self:SetMoveType(MOVETYPE_NONE)
self:SetSolid(SOLID_BBOX)
self:SetHullSizeNormal()
self:CapabilitiesAdd(bit.bor(CAP_ANIMATEDFACE, CAP_TURN_HEAD))
self:SetUseType(SIMPLE_USE)
self:DropToFloor()
self:SetSequence("idle")
end