Talk:Func instance io proxy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 24: Line 24:
They both do the exact same thing. Am I overlooking something?
They both do the exact same thing. Am I overlooking something?
--[[User:TheLazyPanda|TheLazyPanda]] 17:12, 23 May 2011 (UTC)
--[[User:TheLazyPanda|TheLazyPanda]] 17:12, 23 May 2011 (UTC)
:You're right, both ways will work, but the first one is error-prone. You need to know the exact entity names inside the instance you want to communicate with and construct the resulting targetnames like the compiler does. In fact, before the proxy was implemented (L4D2), this was the only way to communicate with instance entities. But with the proxy, Hammer automatically detects all entities that are connected with it, which makes instance I/O much easier (even though it is still being displayed as "broken" by Hammer, I hope Valve will fix that). --[[User:Barracuda|Barracuda]] 18:25, 23 May 2011 (UTC)

Revision as of 11:25, 23 May 2011

Why use a proxy over usual inputs?

e.g. Why not...

My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnStartTouch DoorInstance01-door_open_relay Trigger   0.00 No
 

as opposed to configuring a proxy to handle...

My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnStartTouch DoorInstance01 instance:door_open_relay:Trigger   0.00 No
 

They both do the exact same thing. Am I overlooking something? --TheLazyPanda 17:12, 23 May 2011 (UTC)

You're right, both ways will work, but the first one is error-prone. You need to know the exact entity names inside the instance you want to communicate with and construct the resulting targetnames like the compiler does. In fact, before the proxy was implemented (L4D2), this was the only way to communicate with instance entities. But with the proxy, Hammer automatically detects all entities that are connected with it, which makes instance I/O much easier (even though it is still being displayed as "broken" by Hammer, I hope Valve will fix that). --Barracuda 18:25, 23 May 2011 (UTC)