diff --git a/src/main/resources/assets/carpet/scripts/camera.sc b/src/main/resources/assets/carpet/scripts/camera.sc index 703924ef..e8123d0c 100644 --- a/src/main/resources/assets/carpet/scripts/camera.sc +++ b/src/main/resources/assets/carpet/scripts/camera.sc @@ -8,6 +8,7 @@ __command() -> print(' "/camera prepend " - prepend point seconds before'); print(' "/camera clear" - removes entire path'); print(' "/camera select" - or punch a point, to select it'); + print(' "/camera place_player - moves a player to a selected point'); print(' "/camera move" - moves selected point toplayer location'); print(' "/camera duration " - resizes current selected path'); print(' "/camera split_point>" - splits current selected path in half'); @@ -516,6 +517,13 @@ play() -> ''; ); +// moves player to a selected camera position +place_player() -> +( + __assert_point_selected(_(p) -> p != null); + modify(__get_player(), 'location', global_points:global_selected_point:0 - global_player_eye_offset); +); + // prepares empty path to fit new points __prepare_path_if_needed_generic() -> (