I have a two input operator set like this
Operation: Divide
Operand1: Set to volume object (one input operator)
Operand2: 2.00
I wanted to make it so pressing LB would toggle the Operand2 value from 2 to -2 (enabling inverted control of the right sticks vertical axis.)
Would anyone be able to help me with this?
I tried [LB] >On Press> [Set -2.00] >.. and then I'm unsure how to link it to the operator, I thought maybe I'd have to use a generic filter or two.
Your operand2 would be a variable datasource. And your set value would be changing the value of this datasource.
Thank you, but how would I connect the set value to the operand2 operation to get the change?'m not sure how to link it)
I'm not exactly sure what you're asking, so sorry if the following explanation makes no sense.Originally Posted by Derangedxzombie![]()
Take a data source. Set it's starting value as 2 or -2. Then open up your two input operator properties. Go to Operand2 and press Y to pick value object. Now select your data source. If you did it right you should see in the two input operators properties a D where your operand2 value is shown.
From then on, everytime you change your data source value, the two input operator will use that new value as well for operand 2.
That kinda helped but sorry I'm not explaining very well :b
Basically I have it set like this:
It's not very clear lol but the cursor is on a two input operator, it's set like 0.00 Divide 1.00
If I change that value from 1.00 to minus 1.00, the right thumb stick changes from from normal Y axis movement to inverted Y axis movement.
That's great but what I want to do is, be able to switch between those two values (1.00 and -1.00) while playing the level. So say if I pushed X button the value would change and the player could start using inverted aiming of the right stick.
The thing is I'm not too sure how to make this happen, you can see in the top left hand corner I set it so:
[X/LT] on release [toggles state event] of either [Set value to 1.00] or [set value to -1.00]
And that's as far as I got, I tried using greater and less than generic filters with a data source variable but didn't work ):
Oh and I changed the values from 2/-2 to 1/-1 because they are faster.
What you are doing there is simply toggling the state of your set values between on/off.
Set it up like this:
X/LT on press -> Generic Filter on true -> Set value 1 to data source
on false -> Set value -1 to data source
And your generic filter would be set up like this:
Equals
Operand1 = your data source
Operand2 = -1
Sorry two more questions!
- would the data source I connect the generic filter to be the two input operator?couldn't connect operand1 to it, only via a variable data source which did nothing)
- would the set values 1 and -1 be going to the input operator too, or a different data source?
Originally Posted by Derangedxzombie
I don't quite understand what you're asking, sorry.
Build it the way I explained in my last post and you should get it to work.
Your generic filter operand 1 will be your data source and operand two would be preset to be always -1. So basically you're just comparing your current aiming state(wether it's inverted or not and then changing it to be the opposite.).