Ko/Creating Respawning Dispensers

From Valve Developer Community
Jump to navigation Jump to search

디스펜서 만들기

obj_dispenser 엔티티들

시작은 당신의 맵에 obj_dispenser 몇개를 설치하는것으로 시작합니다. 첫째는 "spawned1"로 하고 둘째는 "spawned2"로 하세요.

point_template 만들기

point_template 엔티티들

point_template 엔티티들을 당신이 설치한 디스펜서들 만큼 추가해주세요. "template1" 나 그다음 "template2" 이런식으로요, 'Template1' 에 호환되는 디스펜서를 설정해주세요, 그럼 point_template는 이제 'Template1' 값이 "spawned1"와 같은 값을 가지게 됩니다. 'Flags' 탭에서 "Don't remove template entities"를 디스펜서들이 생성될때 시작되는지 확인하세요.

env_entity_maker 만들기

env_entity_maker 엔티티들

env_entity_maker를 디스펜서의 수만큼 생성해 주세요. 그들의 'Name' 을 "spawner1", "spawner2", 혹은 기타 등등.. 으로 바꿔주세요. 'Point_template To Spawn' 의 설정은 point_template 와 연결되게 해주셔야 env_entity_maker "spawner1"이 'Point_template To Spawn'의 값으로 "template1"을 가집니다.

Template:Note:ko

Dispenser Outputs

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.

다른 볼것