Where can i learn about AddOutput and the @ prefix?
i've seen those 2 things quite a bit so far but i somehow don't get it.
I've tried understanding the developers wiki page about AddOutput but i doubt it even contains any information that is suitable for one that is relativly new to the subject. And finding out about the @ prefix is also quite hard since google doesn't crawl the symbol. I've spend quite some time looking for anything helpful but failed so far.
I would appreciate a lot if anyone was able to bring some light in my darkness.
Skotty wrote:
AddOutput allows to add a already existing objects adding a new output or change one of the keyvalues (for example it's name or it's parentname).
I have the feeling that the concept is quite simple bit i still don't get it. So i can add an Output to any entity? Let's say i have a counter or something similar i could add a OnHit4 output and then use it as inoput for something else? Is it that easy?
An output using the AddOutput input would look something like this:
Output -> "OnTrigger" | MyEntityNamed -> "env_smokestack" | Target Input -> "AddOutput" | Parameter -> "twist 20" | Delay -> 0
Also look on the VDC on what possible values you can change. Make sure you also read what it does before creating outputs 'willy nilly'.
I must admit, i'm quite tired by now, almost half past 4 in the morning ... don't bother ... i'll wreck my brain tomorrow a little bit more and see if i can get any clues out of this ... mayb i can see the logic once i woke up ;D
thanks
GreyHound wrote:
i tried to examine the timer logic of the counter you released today/yesterday but i didn't really understand how that (i believe it was "addoutput refiretimer" does)
It was 'RefireTime' and that is the value of how long the timer takes to fire (e.g. 30 would take the timer 30 seconds to fire).
In the hammer editor with SmartEdit enabled, it is called "RefireInterval". Using this input I used it to change how long I need the timer to count using an output from the button. Seeing as the instance has to be 'robust' this would be the easiest solution without too many replace variables.
In General: AddOutput is the 'master' output which can change any value, even if it doesn't have a main output that uses it. e.g. (using an output from a logic_timer to a prop_dynamic)

is the same as

====================================================================
Another example using an output from a logic_timer to a prop_portal:

is the same as

Thanks for all your efford on the post.