Can't seem how to make props collide with an AI entity I made.
shared.lua
ENT.Base = "base_ai"
ENT.Type = "ai"
ENT.PrintName = "Banker"
ENT.Spawnable = true
ENT.AutomaticFrameAdvance = true
function ENT:SetAutomaticFrameAdvance( bUsingAnim )
self.AutomaticFrameAdvance = bUsingAnim
end
init.lua
function ENT:Initialize( )
self:SetModel( "models/player/gman_high.mdl" )
self:SetHullType(HULL_HUMAN)
self:SetHullSizeNormal()
self:SetNPCState(NPC_STATE_SCRIPT)
self:SetSolid(SOLID_BBOX)
self:CapabilitiesAdd(CAP_ANIMATEDFACE)
self:CapabilitiesAdd(CAP_TURN_HEAD)
self:DropToFloor()
self:SetMaxYawSpeed(90)
self:SetUseType(SIMPLE_USE)
end
bump, still cant find a fix
Sorry, you need to Log In to post a reply to this thread.