1. #1

    Is it possible to set object properties beyond their limit?

    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%?
    Share this post

  2. #2

    Re: Is it possible to set object properties beyond their lim

    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.
    Share this post

  3. #3

    Re: Is it possible to set object properties beyond their lim

    Yea, I suspect this is the general case. Thanks for the answer.
    Share this post

  4. #4

    Re: Is it possible to set object properties beyond their lim

    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.
    Share this post

  5. #5
    mutetus's Avatar Trials Developer
    Join Date
    Dec 2013
    Location
    The land of fin.
    Posts
    859

    Re: Is it possible to set object properties beyond their lim

    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.
    Share this post

  6. #6

    Re: Is it possible to set object properties beyond their lim

    Originally Posted by Johannes
    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.
    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.
    Share this post

  7. #7

    Re: Is it possible to set object properties beyond their lim

    Yep, that's the only exception I guess (of all the ~400-500 properties)
    Share this post

  8. #8

    Re: Is it possible to set object properties beyond their lim

    Originally Posted by Johannes
    Yep, that's the only exception I guess (of all the ~400-500 properties)
    Wait... was that a challenge?
    Share this post