From bc57c99331f6ed221558fc07228518018af4abeb Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Fri, 2 Oct 2026 21:39:04 +0200 Subject: [PATCH] Create MountedState.gd --- game/player/StateMachine/MountedState.gd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 game/player/StateMachine/MountedState.gd diff --git a/game/player/StateMachine/MountedState.gd b/game/player/StateMachine/MountedState.gd new file mode 100644 index 0000000..3b6a1f4 --- /dev/null +++ b/game/player/StateMachine/MountedState.gd @@ -0,0 +1,16 @@ +# MountedState.gd +extends State + +class_name MountedState + +var state_name : String = "Mounted" +var play_char : CharacterBody3D +var profile : MountProfile # assigné par qui déclenche la monte, avant transitioned.emit(..., "MountedState") + +func enter(play_char_ref : CharacterBody3D) -> void: + play_char = play_char_ref + play_char.move_speed = profile.mount_speed + play_char.move_accel = profile.mount_accel + play_char.move_deccel = profile.mount_deccel + # instancier profile.mount_scene_override ou profile.species.model_scene, + # le positionner, y attacher play_char selon seat_offset...