Hi, I have a dialog in my map which players use to choose if restart a level or not. When a player push a button (yes or not) I disable the button for that player, so he can't vote again, but if you make very fast clicks the player can vote more than one time.
The script is simple:
In theory you could also let your code check if the dialog item is disabled (This would have the same effect), however there is a weird bug which causes trigger errors when requesting dialog item properties which have not been set. (BLIZERD PLS? :D )
Hi, I have a dialog in my map which players use to choose if restart a level or not. When a player push a button (yes or not) I disable the button for that player, so he can't vote again, but if you make very fast clicks the player can vote more than one time. The script is simple:
Why is this happening?
Just add turn off trigger in the action
Disabling dialog items has a delay in multiplayer which allows the triggering player to click more often than expected.
To avoid this simply backup your code with a boolean variable, like this:
In theory you could also let your code check if the dialog item is disabled (This would have the same effect), however there is a weird bug which causes trigger errors when requesting dialog item properties which have not been set. (BLIZERD PLS? :D )
@Darkillusion95: Go
If I do that the others players cant use the buttons...
@Mille25: Go
Thanks man, that worked nice, didnt know about the delay....