Update scripts/gameplay/vehicles/VehicleTemplate.gd

Co-authored-by: Ribbon <55782009+hardBSDk@users.noreply.github.com>
This commit is contained in:
Aislan A. 2024-08-18 12:36:19 -03:00 committed by GitHub
parent 7a50a0fe77
commit 28046b804b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ func _physics_process(delta):
else:
player_can_interact = false
if Input.is_action_just_pressed("btn_interact_car") and player != null:
if Input.is_action_just_pressed("enter_car") and player != null:
if state == VehicleState.STOPPED:
if player_can_interact:
state = VehicleState.PLAYER_DRIVING