How to block a screen when it is already opened by another user?
I would like to block the Access to a certain screen when it is already opene by another user. I made the following steps:
- create a cube with the Entity screen
- the screen gets an open trigger which checks if the cube already contains a value >= 1, if not the screen will be opened and the cube is set so 1, if yes the screen will be closed with a warning
- the screen gets a close trigger which sets the cube to 0
The last step is the Problem: If the open trigger checks that theres is already a value >=1 in the cube, the screen is closed and the close trigger is executed and the cube is set to 0.
If the user tries is again, or another user, he can open the screen, although it is already opened by somebody else.
Does anybody have a godd idea how to realize this Task?
Regard and thanks in advance