• Making a prop/ragdoll with a player animation/state
    2 replies, posted
Hey, I was wondering if somebody could advise on the best way to go about making a ragdoll/prop with a player model, but in a player idle state. I don't know much about animations, so excuse if I'm using incorrect terminology, hope you can understand what I mean. https://i.imgur.com/8RZRb2J.png This photo shows a playermodel created via; cameraShipPlayer = ents.CreateClientProp(jobs[jobSelection]["model"][jobModelNumberSelection], RENDERGROUP_OPAQUE) if IsValid(cameraShipPlayer) then cameraShipPlayer:SetNoDraw(false) cameraShipPlayer:DrawShadow(true) cameraShipPlayer:SetAngles(view.angles + Angle(0, 180, 0)) cameraShipPlayer:SetPos(view.origin - Vector(0, 0, 50)) cameraShipPlayer:Spawn() cameraShipPlayer:SetPos(cameraShipPlayer:GetPos() - cameraShipPlayer:GetForward() * 100) end I've tried using a ClientRagdoll, but it doesn't appear, even after disabling nodraw and enabling shadows, as advised on the wiki. This appears, as shown in the photo, but is a T-Pose - and I'd like it to just be an idle state, simply 'idle' or 'passive' animation, can't recall. jobs[jobSelection]["model"][jobModelNumberSelection] refers to the job model for the selection - assume a playermodel Thanks!
http://wiki.garrysmod.com/page/Entity/ResetSequence cameraShipPlayer:ResetSequence( cameraShipPlayer:LookupSequence( "idle_all_01" ) )
Works perfectly, thank you.
Sorry, you need to Log In to post a reply to this thread.