|
Hi. I have a script that disables weapons depending on the Index of an array. Something like so: But how can I easily set SetActiveRecursively to objects that dose not equal currentWeapon? Some thing like so: Instead of "hard-code" it the above example would be flexible but it gives errors, though. I hope you get what I mean. Thank you.
(comments are locked)
|
|
You could use a For loop to set the first item in the loop to true and everything else to false. (Sorry. I don't know the JS syntax but you should get the general idea.)
(comments are locked)
|
|
Both of the answers would work - my question is which would execute faster? Or is the difference neglible?
(comments are locked)
|
(comments are locked)
|
