instance and AddOutput targetname
Quote from PortalCombat on December 1, 2011, 12:06 pmHey 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:1Both 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?
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?
Quote from Brainstone on December 1, 2011, 1:16 pmTo send inputs to instances there are two ways:
1. My Output named: OnTrigger
Target entity: instanceFixUpName-EntityInsideInstnaceName
Input: TheInputYouWant2. read in the wiki how to create your instance together with a func_instance_io_proxy
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
Quote from PortalCombat on December 1, 2011, 2:14 pmBrainstoneX 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.
[...]
- 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.
Quote from Brainstone on December 1, 2011, 2:33 pmAh, 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?
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?
Quote from PortalCombat on December 1, 2011, 2:47 pmBrainstoneX 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.
Yeah, you are right. The "Target Entity Name" does work as it should.
AddOutput OnTrigger:<targetname>:Disable::0:1
At this point the <targetname> gets not changed. ![]()
Quote from HMW on December 2, 2011, 9:26 amIf 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.
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.
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
Quote from PortalCombat on December 2, 2011, 12:21 pmHMW 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.
(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. ![]()
Quote from ChickenMobile on December 2, 2011, 8:32 pmBrainstoneX wrote:Sorry, but I don't properly understand what you want to do. Why are you using the addOutput command?
Quote from Lpfreaky90 on December 2, 2011, 8:51 pmCould 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?
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?
Quote from PortalCombat on December 2, 2011, 9:16 pmlpfreaky90 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
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.
<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
![]()
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. ![]()


