diff --git a/client/scripts/main.gd b/client/scripts/main.gd index f76dccd20..4c579ee1d 100644 --- a/client/scripts/main.gd +++ b/client/scripts/main.gd @@ -29,12 +29,11 @@ func _process(_delta: float) -> void: # Send queued input to simulation var inputs = InputMapper.flush_queue() for input in inputs: - # TODO: Once server accepts Interact(InteractData), attach target + verb: - # if input.action == InputMapper.Action.INTERACT: - # var target_id: int = interaction_prompt.get_interaction_target() - # if target_id >= 0: - # input["action_data"] = { - # "target_entity_id": target_id, - # "verb": interaction_prompt.get_selected_verb(), - # } + if input.action == InputMapper.Action.INTERACT: + var target_id: int = interaction_prompt.get_interaction_target() + if target_id >= 0: + input["action_data"] = { + "target_entity_id": target_id, + "verb": interaction_prompt.get_selected_verb(), + } SimBridge.send_input(input)