Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dbiton | |
Old Version | Published before Godot 3 was released. |
How can i set the value of a specific object in an array on a different script?
Something like
-Script 1
var array = [0,0,0]
-Script 2
func _ready():
get_node(“~”).set(“array”[0], 1)
I have tried different syntax, yet none seem to work.
Is this possible?