Skip to content

Commit

Permalink
Merge pull request #9271 from TheJP/patch-1
Browse files Browse the repository at this point in the history
Fixed out of date binding syntax for `Signal.connect`
  • Loading branch information
mhilbrunner committed Apr 23, 2024
2 parents 4069062 + 4ae3064 commit eb99315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/scripting/gdscript/gdscript_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2337,7 +2337,7 @@ character's name in the binds array argument::
var character_node = get_node('Character')
var battle_log_node = get_node('UserInterface/BattleLog')

character_node.health_changed.connect(battle_log_node._on_Character_health_changed, [character_node.name])
character_node.health_changed.connect(battle_log_node._on_Character_health_changed.bind(character_node.name))

Our ``BattleLog`` node receives each element in the binds array as an extra argument::

Expand Down

0 comments on commit eb99315

Please sign in to comment.