Auto-translated
Indeed – removing the parentheses fixed the issue, and everything now works as expected. However, I have another question regarding the same code snippet. Now, the object doesn't respond to subsequent interactions, only the first one. I haven't reset the trigger anywhere. What did I do wrong?
Added 18 minutes later
Oh, I solved the problem by replacing "if" with "elseif." When I was looking for a solution to the first error, I fixed it, but I forgot to revert the change! Now, the question is still related to the topic – there are no more errors, everything loads, but when the conditions are met, nothing happens...
Added 18 minutes later
Oh, I solved the problem by replacing "if" with "elseif." When I was looking for a solution to the first error, I fixed it, but I forgot to revert the change! Now, the question is still related to the topic – there are no more errors, everything loads, but when the conditions are met, nothing happens...