My goal is to create an NPC “vendor” that functions as a Nextbot and acts like any normal NPC would. However, after the NPC entity spawns, it stands upright in a “T” shaped position with its arms going straight out instead of to its sides. All content is mounted.
See image here
And the code from init.lua…
function ENT:Initialize() /* self:SetUseType(SIMPLE_USE) self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_NONE) self:SetSolid(SOLID_BBOX) self:SetSequence(3) */ self:SetModel("models/player/suits/male_01_closed_coat_tie.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:SetCollisionGroup( 1 ) end
The method I was using before I commented out because I wanted to try the “newer” method of using a Nextbot. The method I was using creates a static and boring, however functioning, NPC.
How can I fix this problem?