trying to make an entity that changes your sequence, I tried this but got no success and I dont know why exactly:
function playersequence(ply)
local sequence = ply:LookupSequence("injured3")
ply:SetSequence(sequence)
end
function ENT:Use( activator, caller )
if IsValid( caller ) and caller:IsPlayer() then
hook.Add("CalcMainActivity", "playerseq", playersequence)
end
end
I’ve used CalcMainActivity the way I tought it was best, I placed prints in my custom function to see if it works and it gladly does but it doesnt change my sequence?