Help with trigger_changetarget Created 8 years ago2015-08-15 19:24:55 UTC by joao7yt joao7yt

Created 8 years ago2015-08-15 19:24:55 UTC by joao7yt joao7yt

Posted 8 years ago2015-08-15 19:24:55 UTC Post #326742
Guy,

I wonder if is possible to have, in Source Engine, the same property as trigger_changetarget had in goldsrc. I want to change a target from an output.
I guess it will be something related with logic_ entities, but I can't figure it out. Someone can help me?

Thanks.
Posted 8 years ago2015-08-16 07:11:29 UTC Post #326744
Source engine uses the Input/Output system, rather than the target system. Explain more precisely what effect you want to achieve, and I can help you.
Dr. Orange Dr. OrangeSource good.
Posted 8 years ago2015-08-17 11:46:25 UTC Post #326750
Yeah there's no real way to give you a solid answer.
Present us with a situation and we can definitely help out.
If you figured it out for yourself, let us know!
Tetsu0 Tetsu0Positive Chaos
Posted 8 years ago2015-08-17 12:54:41 UTC Post #326751
The question is simple:

How can you set it up in Source to have an entity (let's say for the sake of argument a func_button) fire output A until a specific event makes it fire output B.

In other words, to have the behaviour of a trigger_changetarget in Goldsource.

I know I've done this before and I don't believe it was particularly complicated, but I haven't touched Source in so damn long I can't remember.
Archie ArchieGoodbye Moonmen
Posted 8 years ago2015-08-17 13:10:44 UTC Post #326752
Well in that case, you want a logic_branch, but there's probably simpler ways of doing things which are definitely event specific.

Logic branch holds a 1 or 0 value; by default it's 0.
The button TESTS the logic branch which fires TRUE or FALSE outputs.
So the default action is ON FALSE.
The event will set the logic branch value to 1.
The new wanted action is ON TRUE
BUTTON OUTPUTS:
func_button:On Pressed -> logic_branch:Test

LOGIC BRANCH OUTPUTS:
logic_branch:OnFalse-> Do Default Action
logic_branch:OnTrue-> Do New Action

OTHER EVENT OUTPUTS:
Misc_Event:OnTrigger-> logic_branch:SetValue:0
Tetsu0 Tetsu0Positive Chaos
Posted 8 years ago2015-08-17 14:39:42 UTC Post #326754
I would just go with this:
Two logic_relays, one named "relay_A" and the other "relay_B". The entity you want to have it's output changed should give a Trigger output to both of them. Relay_B should have "Start Disabled" set to yes.
Then, give the following output to the entity you want to act as a changetarget: outputeventnamehere, relay_A, Disable; output, relay_B, Enable.
Dr. Orange Dr. OrangeSource good.
You must be logged in to post a response.