Ok I understand how to change the controls for the rider. What I want to know is how I can change the positive inputs to negative ones and vice versa. I want the rider to lean back when I press right on the left stick and lean forward when I press left on the left stick
can I use the game variable data source with a bike event and some sort of operator/formula to change the positive input to an opposite negative input, and if so what formula.
Help would be much appreciated
I've gotten the rider to lean forward pressing left on the stick using AND!!, but I can't get him to lean back.
Hey Crow. There are a few different ways to reverse the output. The simplest one for me keep straight, that seems to work in every instance, is to run the stick/button output through a multiplication operator set to (-1) then peg the target value to that operator. In this case you'd run both the "left-stick left" and the "left-stick right" commands through this filter first, then tie the associated rider value to the filter if possible. It should auto-magically reverse the results.
I haven't tried playing around with altering the rider specifically, but it should solve the problem unless the rider inputs are somehow tied in differently than everything else in the game.![]()
![]()
This is how I set it up:
http://www.abload.de/img/2012-05-13_19-15-52zvink.png
I disabled the normal left and right controls. And then I convert the left stick horizontal value to be used with the lean event (horizontal value * 42.33 = lean). If I want it inverted, I use the one-number negative operator on the final value.
It works smashingly!!! I had to change the value to -15 to have a motion that's more like the in game lean, but it works perfectly. Thank you very very much. I am no math wizardOriginally Posted by grimm![]()
Thank you very much for your help! I set it up the exact way you did and could make the rider lean realistically with the sticks disabled. But I couldn't invert them. I didn't quite understand want you meant when you said use the one number negative operator on the final value. Wasn't sure what to tie to what. tried a few different things, but broke the logic, lol. I'm sure it works the way you say it does, I'm just dumb and couldn't figure it outOriginally Posted by Sectus![]()
Hope this thread helps others who try and do the same thing. 2 ways of flipping the controls!
Thanx again guys!!!!
Just to make it even easier to understand.
A 2 input operator set to multiply.
operand 1 - game variable data source (left stick horizontal lean)
operand 2 - set value to -15
Bike control event
type- lean
value- "press y and select the 2 input operator"
left stick-left (disabled)
on press- "select the bike control event"
left stick- right (disabled)
on press- select the bike control event"
now add an interval trigger set to 1 tick intervals and select your bike control event with it.
your rider should have flipped controls!!
very simple method! Grimm is the man!
just multiply the lean from the stick by -42 and apply it to the lean event.
I've used and am currently using the set up Sectus described to you, and it works absolutely perfectly. It only takes a little bit of time to set up and it gives the same exact lean values for both regular and flipped controls. Well worth your time