Using a variable data source you can set object properties (let's say bike power) to a specific number. The regular slider for bike power goes from 0%-200% (i believe). Does setting the custom variable data source to 300 set the bike power to 300% or does it still automatically cap it at 200%?
I don't know about a general answer, but I have tried this and found the numbers to be capped at least in some instances. For example, the Driving Line Position event accepts only integers from 0-100. You can pass higher and lower, but it caps it. You can also pass non-integers, but it always rounds downward.
Yea, I suspect this is the general case. Thanks for the answer.
Feeding values to properties from datasources caps to the same object property limits. But it does not round to the nearest integer! So you can feed decimals to almost all of the properties.
Here's a little tip: The limit can be used to switch between minimum and maximum values, say 0% and 100% with minimum amount of events if you have only one trigger, like a button and the property doesn't go below 0. Just set the button to trigger the set value event to set variable data source its negative value and you don't need any filters to compare the variable data source value. The object properties limit the -100-100 to 0-100.
I have used this to good effect, except for the case of Reset To Driving Line. I'm pretty sure it was rounding off to the nearest integer.Originally Posted by Johannes
Yep, that's the only exception I guess (of all the ~400-500 properties)![]()
Wait... was that a challenge?Originally Posted by Johannes![]()