I’m currently making a botch job of using:
if self.Entity.attacktime > CurTime() then
self.Entity:SetSequence( self.Entity:LookupSequence( “throw1” ) )
elseif self.Entity:GetPos() != self.Entity.pos then
self.Entity:SetSequence( self.Entity:LookupSequence( “sprint_all” ) )
self.Entity.pos = self.Entity:GetPos()
Which is a bit stupid. Is there any way I can force animations my own way, while using shedules? (I hate shedules, but it seems it’s the only way to move NPCS for now, thanks to no Nav Mesh support!).
Also, the throw1 sequence fucks up, and judders after one run through, and no, it’s not because it’s “resetting”, SetSequence doesn’t reset it if it’s the current sequence. Basically, I need a sequence override.
Second, not so important question:
What’s the best way to create clientside ragdolls? I know you can SetNPCState dead and so on, but it doesn’t work with Citizen based models (missing ACT_DIESAMPLE?).