Skip to content

player.toggled_interface.emit(true) does not work when called by _on_dual_interaction_on_hold_complete #515

Description

@nbe1233

I am on,
Cogito 1.1 on Godot 4.5 Void Linux

When calling player.toggle_interface(true) on a DualInteraction component's function does not work.

func _on_dual_interaction_on_hold_complete(_player_interaction_component: PlayerInteractionComponent) -> void:
    var player : CogitoPlayer = get_tree().get_first_node_in_group("Player")
    player.toggled_interface.emit(true)

The expected behavior is that it shows the mouse and stops player movement, this works when part of a basic interaction, but for dual interaction on hold it does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions