Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Logic_auto cannot be targeted through names since they cannot be named, so you would have to manually add a targetname or use its classname to remove it after it has fired its outputs. The problem is, many level designer have multiple logic_auto in their maps, so they would have to find a work around.
There is an easier way of doing it and it is by using env_global.
What it does is that, for 1 round and 1 round only, the env_global is going to enable the events in the map that is triggered by a logic_auto.
https://www.youtube.com/watch?v=HjQUUPkfqDA
Func_brush, info_target are both permament which mean if they are killed, they never come back the nextround.
Put an output on one of these entity:
OnUser1 Speaker_01,PlaySound,,<delay=0>
OnUser1 !self,Kill,,<delay=1>
And on your logic auto, you FireUser1 on the func_brush/info_target (with the delay you want).
It will play the sound and then the info_target will be killed. So each round, it will FireUser1 on nothing, so the sound is played once.
thanks for the help. But i looks like an env_global is no longer aviable in source sdk.
and thanks moltard, but i think i'm to stupid. it doesnt work. the target !self does not work..
logic_auto outputs:
OnMapSpawn -> Speaker_01 -> PlaySound
OnMultiNewRound -> Speaker_01 -> kill
It can do interesting things, but on multiplayer game it can get buggy, and also it's not in the default .fgd anymore (in Source SDK it was loading hl2.fgd per default, not in hammer.exe for other games).
@henge
Good that you found a different way to do it.
But !self should work. There are 3 special name you can use:
!activator = it will be the 1st entity that started the output chain
!caller = previous entity in the output chain (not often used)
!self = the current entity
Those are pretty useful when doing Input/Output stuff. Usually you use !activator on trigger_once/multiple to do things on the player who touch the trigger.
Which .fgd are we talking about? I just went through them 1 by 1 and all of them had env_global. It just might be an update that I did not have.
It might be in all half life2 fgd (normal + episodic )