Ko/Creating Respawning Dispensers: Difference between revisions
Line 3: | Line 3: | ||
시작은 당신의 맵에 [[obj_dispenser]] 몇개를 설치하는것으로 시작합니다. 첫째는 "spawned1"로 하고 둘째는 "spawned2"로 하세요. | 시작은 당신의 맵에 [[obj_dispenser]] 몇개를 설치하는것으로 시작합니다. 첫째는 "spawned1"로 하고 둘째는 "spawned2"로 하세요. | ||
== | == point_template 만들기 == | ||
[[Image:Dispensers2.jpg|thumb|point_template | [[Image:Dispensers2.jpg|thumb|point_template 엔티티들]] | ||
[[point_template]] 엔티티들을 당신이 설치한 디스펜서들 만큼 추가해주세요. "template1" 나 그다음 "template2" 이런식으로요, 'Template1' 에 호환되는 디스펜서를 설정해주세요, 그럼 point_template는 이제 'Template1' 값이 "spawned1"와 같은 값을 가지게 됩니다. 'Flags' 탭에서 "Don't remove template entities"를 디스펜서들이 생성될때 시작되는지 확인하세요. | |||
== Create env_entity_maker == | == Create env_entity_maker == |
Revision as of 04:07, 1 July 2014
디스펜서 만들기
시작은 당신의 맵에 obj_dispenser 몇개를 설치하는것으로 시작합니다. 첫째는 "spawned1"로 하고 둘째는 "spawned2"로 하세요.
point_template 만들기
point_template 엔티티들을 당신이 설치한 디스펜서들 만큼 추가해주세요. "template1" 나 그다음 "template2" 이런식으로요, 'Template1' 에 호환되는 디스펜서를 설정해주세요, 그럼 point_template는 이제 'Template1' 값이 "spawned1"와 같은 값을 가지게 됩니다. 'Flags' 탭에서 "Don't remove template entities"를 디스펜서들이 생성될때 시작되는지 확인하세요.
Create env_entity_maker
Create an equal number of env_entity_maker entities, one entity per dispenser. 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
OnDestroyed is not one of the selectable outputs, so Hammer will say this is invalid. Ignore that, it will work in game. Adjust the delay to the number of seconds you want the dispenser to take to respawn.
Now, when your map loads, there should be a set of dispensers, which, when destroyed, make another one spawn in its place.