fix the overlapping input
This commit is contained in:
@@ -18,7 +18,11 @@ func _ready():
|
||||
# Set this tree's actor
|
||||
actor = parent
|
||||
|
||||
# Wait a frame to ensure all nodes are ready
|
||||
await get_tree().process_frame
|
||||
|
||||
enabled = parent.is_multiplayer_authority() and parent.is_bot
|
||||
|
||||
# Set up blackboard with initial values
|
||||
if blackboard:
|
||||
blackboard.set_value("action_points", parent.action_points)
|
||||
blackboard.set_value("current_action", "idle")
|
||||
blackboard.set_value("grab_position", parent.current_position) # Default grab position
|
||||
blackboard.set_value("move_target", null)
|
||||
|
||||
Reference in New Issue
Block a user