Creating turrets
From Valve Developer Community
Creating rocket and bullet firing turrets is very easy and can add a different obstacle to your map.
[edit]
Bullet (floor) turrets
- Select the entity tool (Shift + E) and in the dropdown menu select
npc_portal_turret_floor. - Then place it where you would like it on the map and rotate it so it's facing the correct direction.
- Right-click on it and go to Properties.
- Set Damage pushes player to Yes if you want the player pushed back by the turret.
- Under Flags, check Autostart and Fast retire. This will cause your turret to automatically start and retire fast (like the ones in Portal).
Additionally, you can create a box around your turret to prevent it from being knocked down.
[edit]
Rocket turrets
- Select the entity tool (Shift + E) and in the dropdown menu select
npc_rocket_turret. - Then place it where you would like it on the map and rotate it so it's facing the correct direction.
To make it more Portal-esque, you should hide the turret under a door in the floor and have it raise up once the player comes near.
[edit]

