#A cv2 bug in my game
12 messages · Page 1 of 1 (latest)
if the execution dont work, send event receiever that runs it for room authority, if it dont work at all, rec room need to work on improving player left event fs. Abd then you can probably have a button that manually updates it that just runs for the player pressing it. Or update it every 5 mins or sumn, but idk, if ppl too lazy to push a button, then personally i think thats their own fault. Also have a thing display "Weapons in Use: Players in room: " so ppl get an idea of when they most likely need to update it (most likely bc probably not everyone will have a gun)
yeah, and if object isnt equipted "equipted output = false" then itll do nothing if its equipted, else it will subtract, ensuring the weapong is available.
ah ok 
well, theres a int for ever weapon, right? and your checking every int, so than yeah itd account for copys. And you havent said anything about another system ensuring nobody would equipt a weapon if there isnt enough for them, that or im not sure how that ties into it. I thought the problem was that the system wouldn't give any weapons because the ints for weapons of leaving players wouldnt reset to 0
also i should mention that u should set from 0 or 1, not add or subtract. And since its 2 states (1 or 0) i suggest using booleans, tho not needed, not sure if it improves cpu or not, but maybe someone can correct me or clarify that ints and bools are same cpu.
And instead of placing all those chips that take chip space, you can use a delay for each (custom for loop with list get element) and create lists from all the synced variables. if theres over 64 synced variables, then you'll have to creat lists inside list, where if 1 list is done, you increment a second index to change to the next list inside the list via list get element with the main list
why dose it need to know the player to accurately do it? The ints are synced so it shouldn't matter, by my understanding
but my system would subtract any variables that have no user operatingthe corresponding variable, thus the correct one
and once again, since its 2 sates, you should set, not add or subtract