WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Disable mouse click till Avatar finish its instructions (https://forum.worldviz.com/showthread.php?t=6218)

Vishav 12-10-2018 11:04 AM

Disable mouse click till Avatar finish its instructions
 
I want to user of my interface will only able to click on object shown by avatar only after avatar finish speaking. How its possible?

As user sometime click the target while avatar speaking which causes my code to stop work. Please Help.

Jeff 12-12-2018 03:38 AM

Use the viztask.runAction command to run an action (e.g. speak action) and wait for it to finish. Before running the action you can disable the mouse and after it completes you can enable the mouse. Can you describe further what you mean by clicking on an object?

Vishav 12-12-2018 05:30 AM

Clicking Object means avatar give two options to children and children has to click on right option. But children usually click on the option before avatar finish command. I want to disable mouse at that time. How it is possible?

Jeff 12-12-2018 11:09 PM

You could hide the visibility of the mouse cursor using the setVisible command. Or you could disable the GUI objects you don't want clicked.

Vishav 01-06-2019 05:35 AM

Is it possible to disable mouse function for some time rather than hiding visibility of mouse?


All times are GMT -7. The time now is 04:05 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC