Dastyruck Posted December 23, 2008 Author Share Posted December 23, 2008 Does the setspeed sub work with numbers such as 1.5? I know it must be above 1 but does it do decimals? Link to comment Share on other sites More sharing options...
DarkMazer Posted December 23, 2008 Share Posted December 23, 2008 SetSpeed only works with powers of two, and only between 1 and 32. A complete list of numbers that work is 1, 2, 4, 8, 16, and 32. Link to comment Share on other sites More sharing options...
Dastyruck Posted December 23, 2008 Author Share Posted December 23, 2008 Thats very odd… so it just rounds up any other numbers? Link to comment Share on other sites More sharing options...
DarkMazer Posted December 24, 2008 Share Posted December 24, 2008 It won't work for any other numbers. Link to comment Share on other sites More sharing options...
Dastyruck Posted December 24, 2008 Author Share Posted December 24, 2008 Thats not true… I am currently using 1.5 for walk and 5 for run and it works fine... I just cant tell any difference between 1.5 and 1... Link to comment Share on other sites More sharing options...
Sevg Posted December 24, 2008 Share Posted December 24, 2008 Depends what type the variable is (Integer / double / etc)If it's integer/byte/long 1.5 would be the same as 1, as far as i know, i'm a noob at programming so dont quote me. Link to comment Share on other sites More sharing options...
DarkMazer Posted December 28, 2008 Share Posted December 28, 2008 It might be auto-truncating the decimal, so 1.5 becomes 1, since SetSpeed only takes in integers. Other than that, from what I've seen, it won't work with numbers that aren't powers of 2. I tried setting run speed to 6 once, and it didn't change. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now