Creating Portal turrets: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 8: Line 8:
3. Right-click on it and go to Properties.
3. Right-click on it and go to Properties.


-Set ''Damage pushes player'' to ""Yes"" if you want the player pushed back by the turret.
-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).
-Under ''Flags'', check '''Autostart''' and '''Fast retire'''. This will cause your turret to automatically start and retire fast (like the ones in Portal).


4. That's all there is to it! You can create a box around your turret to prevent it from being knocked down if you like.
4. That's all there is to it! You can create a box around your turret to prevent it from being knocked down if you like.
Line 19: Line 19:
2. Then place it where you would like it on the map and rotate it so it's facing the correct direction.
2. Then place it where you would like it on the map and rotate it so it's facing the correct direction.


{{note|Under ""Flags"", check ''Disabled'' if you don't want it to be active right away.}}
{{note|Under ""Flags"", check '''Disabled''' if you don't want it to be active right away.}}


3. That's it! 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.
3. That's it! 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.

Revision as of 12:24, 14 November 2007

Creating rocket and bullet firing turrets is very easy and can add a different obstacle to your map.

Bullet (Floor) Turrets

1. Select the entity tool (Shift + E) and in the dropdown menu select npc_portal_turret_floor.

2. Then place it where you would like it on the map and rotate it so it's facing the correct direction.

3. 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).

4. That's all there is to it! You can create a box around your turret to prevent it from being knocked down if you like.

Rocket (Ground) Turrets

1. Select the entity tool (Shift + E) and in the dropdown menu select npc_rocket_floor.

2. Then place it where you would like it on the map and rotate it so it's facing the correct direction.

Note.pngNote:Under ""Flags"", check Disabled if you don't want it to be active right away.

3. That's it! 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.