Home Programming

Discussion

Left ArrowBack to discussions page
aaronskidmoreaaronskidmore Unconfirmed Posts: 5 Apprentice
I am wanting to set a wait command for a length of time based on a variable.
I have tried timers and loops but cant seem to get anything going.

Comments

  • bcastetsbcastets Vacuum Beta tester Posts: 601 Expert
    Did you tried something like this ?

    Start timer
    while timer<variable:
            wait(1s)
    Stop timer
  • matthewd92matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,261 Handy
    Use the script command sleep(). 

    local variableWaitTime = 5
    sleep(variableWaitTime)
    That is the command a wait for time becomes when Polyscope converts it to script. 
Sign In or Register to comment.
Left ArrowBack to discussions page