So i need help with a map voting system. I used the same version that I made a guide on. Except it doesn’t work. The thing is, the whole voting system is not broken. My counter counts and updates the property and everything. However, it doesn’t relay it to a channel like the other parts of my code.
this is my code
For some reason, the first part of this if statement where it is checking if 5 is greater isn’t working. It wont broadcast the message to the channel. Any ideas?
It is supposed to deactivate a barrier
I don’t see any obvious mistakes. The only thing that might be a possibility is the value of the property is changing while the code block is running. (You call get property several times)
to fix this i would store each property as a variable so that way if it changes it changes all the declarations of property A
See how you use each property multiple times.
If your computer is running really slow and you have the property changing while this is running it could switch values. Instead declare all of these as separate variables
Create a new variable in the variables tab. Drag a set variable to block out and set the variable to the property at the top of your code. Now grab the other variable block out of the variables tab and put it where the get properties blocks were