weapon slots and loadout done
This commit is contained in:
@@ -31,6 +31,7 @@ extends Node
|
||||
|
||||
var desired_throttle := 0.0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if current_controlled != null: # Only happens on intial loading if boat already moves
|
||||
desired_throttle = current_controlled.throttle
|
||||
@@ -52,6 +53,9 @@ func _process(delta: float) -> void:
|
||||
current_controlled.desired_throttle = desired_throttle
|
||||
current_controlled.steer_input = steer_input
|
||||
|
||||
if Input.is_action_pressed("fire"):
|
||||
current_controlled.fire_weapons()
|
||||
|
||||
func _possess() -> void:
|
||||
camera_rig.target = current_controlled
|
||||
world_manager.focus = current_controlled
|
||||
|
||||
Reference in New Issue
Block a user