Jump to content

Quick question..


Feche1320

Recommended Posts

Posted

Can someone tell me what does this mean/do?

if not state and analogNames[v] then 
    state = getAnalogControlState( v ) >= 0.5 -- What does >= 0.5 do?? I always used it like 'if 5 >= 5 then' ..  
end 

Thanks!

Posted
Should return true if 0.5 or higher of amount of the control is pressed, false otherwise.

I may be wrong, but I think it should return that.

Yes it works like that

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...