My NPC legs keep moving back and forward
[lua]
function ENT:Initialize()
self:SetModel( "models/mossman.mdl" )
self:PhysicsInit( SOLID_BBOX )
self:SetMoveType(MOVETYPE_NONE)
self:SetHullType(HULL_HUMAN)
self:SetHullSizeNormal()
self:SetUseType(SIMPLE_USE)
self:SetSolid( SOLID_BBOX )
self:CapabilitiesAdd(CAP_ANIMATEDFACE)
local phys = self:GetPhysicsObject()
if (phys:IsValid()) then
phys:Wake()
end
end[/lua]
[editline]17th April 2013[/editline]
Bumpp
bump ;/
bump
bump
They're in the ground.
no. they were in the air
My god you're unpatient.
[QUOTE=Jongunner;40337614]My god you're unpatient.[/QUOTE]
It's impatient. Anyway, full code or no help I guess.
I don't know if it could help you but i used that in my anim_script (Using NPC Models on players)
[lua]
local eyeAngles = ply:EyeAngles();
local yaw = velocity:Angle().yaw;
local normalized = math.NormalizeAngle(yaw - eyeAngles.y);
ply:SetPoseParameter("move_yaw", normalized);
[/lua]
You just have to inster this in your code and remplace "ply"
[QUOTE=Jongunner;40337614]My god you're unpatient.[/QUOTE]
How am I impatient you retard? If I have stuff to do, I'm not going to wait days for a reply
@Robotboy655..it is the full code LOL
[QUOTE=tyguy;40343738]How am I impatient you retard? If I have stuff to do, I'm not going to wait days for a reply[/QUOTE]
Either wait for a reply or don't get any help whatsoever.
Sorry, you need to Log In to post a reply to this thread.