Need help with my NPC shop, im using the combine soldier and his arms are out away from his body
Heres my code
[LUA]
function ENT:Initialize( ) --This function is run when the entity is created so it's a good place to setup our entity.
self:SetModel( "models/player/combine_soldier.mdl" ) -- Sets the model of the NPC.
self:SetHullType( HULL_HUMAN ) -- Sets the hull type, used for movement calculations amongst other things.
self:SetHullSizeNormal( )
self:SetNPCState( NPC_STATE_SCRIPT )
self:SetSolid( SOLID_BBOX ) -- This entity uses a solid bounding box for collisions.
self:CapabilitiesAdd( CAP_ANIMATEDFACE | CAP_TURN_HEAD ) -- Adds what the NPC is allowed to do ( It cannot move in this case ).
self:SetUseType( SIMPLE_USE ) -- Makes the ENT.Use hook only get called once at every use.
self:DropToFloor()
self:SetPos(Vector(-1391.9634, 33.2915, -195.9688))
self:SetMaxYawSpeed( 90 ) --Sets the angle by which an NPC can rotate at once.
end
[/LUA]
[lua]self:SetModel( "models/Combine_Soldier.mdl" ) -- Sets the model of the NPC. [/lua]
Entities with a ragdoll model are in the T-Pose
Sorry, you need to Log In to post a reply to this thread.