How to make a "npc" in hammer

DoodleDon

L2: Junior Member
Nov 22, 2020
85
6
Hi, this is something I've seen in multiple maps and always wondered how it works. This thing being a npc like a Heavy, Demoman, Medic etc performing actions in tf2.
What I would like to know is how I can make said npc in hammer, since all tutoriels online only talk about Half life or server bots.
Also, what I want made is a Spy behind a fence laughing at the player, if this is possible ofcourse.
If anyone knows how to make something like this, it would be highly appreciated : )