How do I set things like Speed or Perception on an SNPC?

How would I add Things like how long an NPC would take cover or how far they can see, or viewing angle, or movement speed, and under what circumstances would they crouch? And do I put this in the function ENT:Initialize? Thanks.

And how do I trigger things like effects and talking+animations. Already saw “PlaySequence” and upon looking into that on the wiki, it said it was a custom task defined in another .lua file. But I couldn’t find where it is defined.

[del]One More Likely easy question, Is there an IsJumping or GetHeight or GetElevation?[/del]

ENT:OnGround :confused: didn’t see that. above still applies.