Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DatMAD |
So basically I have an array called units
and inside a class function I’m trying to access that array. Looks like this:
var units = []
class Unit:
func _init():
print(units)
Except it always gives me an error: The identifier “units” isn’t declared in the current scope