• NPC "T" Position Problem
    2 replies, posted
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 [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=836429584"]here[/URL] And the code from init.lua.. [code] 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 [/code] 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?
Try removing self:SetNPCState(NPC_STATE_SCRIPT)
[QUOTE=Zeh Matt;51634214]Try removing self:SetNPCState(NPC_STATE_SCRIPT)[/QUOTE] Unfortunately, that did not fix the problem.
Sorry, you need to Log In to post a reply to this thread.