TF2/Creating Respawning Dispensers: Difference between revisions
No edit summary |
|||
Line 26: | Line 26: | ||
If you test your map now, you will find there are no dispensers on your map! So, we need to add some. Select all your dispensers, and make a copy set. For all these copy dispensers, and delete the Name value. Move the dispensers on top of your original ones. Now, when your map loads, there should be a set of dispensers, which, when destroyed, make another one spawn in its place. | If you test your map now, you will find there are no dispensers on your map! So, we need to add some. Select all your dispensers, and make a copy set. For all these copy dispensers, and delete the Name value. Move the dispensers on top of your original ones. Now, when your map loads, there should be a set of dispensers, which, when destroyed, make another one spawn in its place. | ||
[[Category:Tutorials]] [[Category:Team Fortress 2]] | [[Category:Tutorials]] | ||
[[Category:Level Design Tutorials]] | |||
[[Category:Team Fortress 2]] |
Revision as of 01:56, 13 September 2008
Create Dispensers
Start by placing a few obj_dispenser entities in your map. Name the first "spawned1", the second "spawned2", and so on.
Create point_template
Add an equal number of point_template entities as you have dispensers. Set Name to "template1", "template2", etc. Set Template1 to the matching dispenser, so point_template "template1" will have Template1 value "spawned1".
Create env_entity_maker
Create an equal number of env_entity_maker entities as you have dispensers. Set Name to "spawner1", "spawner2", etc. Set Point_template To Spawn to the matching point_template, so env_entity_maker "spawner1" will have Point_template To Spawn value "template1".
Dispenser Outputs
On the output tab for each dispenser, add these values with the corresponding numbers:
- My output named:
OnDestroyed
- Target entities named:
template1
- Via this input:
ForceSpawn
- After a delay in seconds of:
10
Hammer will say this is an invalid output, ignore that. Adjust the delay to the number of seconds you want the dispensers to take to respawn.
Set Initial Dispensers
If you test your map now, you will find there are no dispensers on your map! So, we need to add some. Select all your dispensers, and make a copy set. For all these copy dispensers, and delete the Name value. Move the dispensers on top of your original ones. Now, when your map loads, there should be a set of dispensers, which, when destroyed, make another one spawn in its place.