Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mrdanb |
this is the code that is not working
var response = await(self, “request_completed”) [3]
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mrdanb |
this is the code that is not working
var response = await(self, “request_completed”) [3]
Reply From: | godot_dev_ |
The error message is self explanatory. A closing ‘)’ is expected, but you didn’t provide it; that is, you missing a closing bracket. Every opening bracket should also have a matching closing bracket. I am not too familiar with godot 4, but according to the documentation, await either takes a signal or coroutine. Assuming your request_completed
is an array that holds a signal or a coroutine (given your square bracket usage), then I beleive changing your code to the below should fix the issue:
var response = await self.request_completed[3]