Please or Register to create posts and topics.

instance and AddOutput targetname

Page 1 of 2Next

Hey guys.

I have started to work with self created instances and ran into a problem:
- relay_1 => OnTrigger => AddOutput => relay_2 OnTrigger:<targetname>:Disable::0:1

Both relays and the <targetname> are entities within the instance.
But it does not work, because of the Prefix-Fixup-Name of the instance: Prefix-<targetname>.

How can I get this to work?

[back on TWP since 08. July 2017]
Steam: DrFauli

To send inputs to instances there are two ways:
1. My Output named: OnTrigger
Target entity: instanceFixUpName-EntityInsideInstnaceName
Input: TheInputYouWant

2. read in the wiki how to create your instance together with a func_instance_io_proxy

The Aperture Alpha
A map pack coming soon. - click for more information
Image
BrainstoneX wrote:
To send inputs to instances there are two ways:
[...]

- I don't want to send an Output to my instance.
- I do want to send an Output within the instance, where the <targetname> is the parameter.

[back on TWP since 08. July 2017]
Steam: DrFauli

Ah, ok.
Inside of instances you don't need to call the target entities prefix-targetname, just targetname. I am 100% this works as I have instances where I do this. But I don't think this was your question. Sorry, but I don't properly understand what you want to do. Why are you using the addOutput command?

The Aperture Alpha
A map pack coming soon. - click for more information
Image
BrainstoneX wrote:
Inside of instances you don't need to call the target entities prefix-targetname, just targetname. I am 100% this works as I have instances where I do this.

Yeah, you are right. The "Target Entity Name" does work as it should.

BrainstoneX wrote:
Sorry, but I don't properly understand what you want to do. Why are you using the addOutput command?

AddOutput OnTrigger:<targetname>:Disable::0:1
At this point the <targetname> gets not changed. :thumbdown:

[back on TWP since 08. July 2017]
Steam: DrFauli

If you make sure that the target object's <targetname> starts with an @ character, it will not get a name fix-up and it should work with AddOutput.
(Valve does this with the box dropper instances.)

The only limitation is that you can't have multiple copies of the same instance in one map, since the @names will conflict.

Sendificate series: Sendificate | A Beam Too Far | Airtime | 302
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
HMW wrote:
If you make sure that the target object's <targetname> starts with an @ character, it will not get a name fix-up and it should work with AddOutput.
(Valve does this with the box dropper instances.)

The only limitation is that you can't have multiple copies of the same instance in one map, since the @names will conflict.

yep, I know. But I have at least 8 of these instances at my map. :(

[back on TWP since 08. July 2017]
Steam: DrFauli
BrainstoneX wrote:
Sorry, but I don't properly understand what you want to do. Why are you using the addOutput command?
?????????????????????????????TWP Releases | My Workshop

Could you be a bit more specific about what has to happen?

Could you do something like?
Trigger 1: OnTrigger <targetname> FireUser4
<targetname> OnUser4 -> relay_2, FireUser4
Relay 2 OnUser4, !activator, disable?

lpfreaky90 wrote:
Trigger 1: OnTrigger <targetname> FireUser4
<targetname> OnUser4 -> relay_2, FireUser4
Relay 2 OnUser4, !activator, disable?

I solved it nearly like this example, but I still have the problem with the AddOutput command.

What I have learned so far:
- Hammer does not change the "&i" in "Parameter"-Field
- Hammer does not add the Fixup Name of an instance in "Parameter"-Field

:thumbdown:

I was trying to use the AddOutput command, because it would have been much easier,
when Hammer would change the "&i" and would add the Fixup-Name of the instance in "Parameter"-Field.

It's about 500% more work for me now, just because it does not work properly. :thumbdown:

[back on TWP since 08. July 2017]
Steam: DrFauli
Page 1 of 2Next