update
This commit is contained in:
@@ -46,6 +46,16 @@ func _process(delta):
|
||||
if target_position != player.current_position:
|
||||
movement_manager.simple_move_to(target_position)
|
||||
|
||||
# Targeting Inputs (1, 2, 3, 4)
|
||||
if Input.is_key_pressed(KEY_1):
|
||||
player.attempt_target_action(0)
|
||||
elif Input.is_key_pressed(KEY_2):
|
||||
player.attempt_target_action(1)
|
||||
elif Input.is_key_pressed(KEY_3):
|
||||
player.attempt_target_action(2)
|
||||
elif Input.is_key_pressed(KEY_4):
|
||||
player.attempt_target_action(3)
|
||||
|
||||
func handle_unhandled_input(event):
|
||||
# Early return if not authorized human player
|
||||
if not player.is_multiplayer_authority() or player.is_bot or player.is_in_group("Bots"):
|
||||
|
||||
Reference in New Issue
Block a user