![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | N-jima |
Hi, i’m currently making a simple RPG game in 3d. And I want to change the value of a variable I have defined in another script. I was following a tutorial and ended up with this code.
extends Area
onready var buff = get_node(“.”)
func _on_Area_area_entered(area):
buff.can_step = false
However this returns an error "Invalid set index ‘can_step’ (on base: ‘Area(Area.gd)’) with value of type ‘bool’.
Am very confused as to why i’m receiving this error as I see this code working perfectly fine on other examples and tutorials.