How to move the camera to a given position?

kaopan

New member
Feb 7, 2024
6
0
1
I am finding out how to write a script to move the camera to a given position.
Does anyone know which function should be used?
I remember that there used to be an official Melonity script for Techies' Remote Mines that could move the camera to the mine stack when it's about to explode.
Thanks in advance!!
 

prota

Administrator
Staff member
Nov 15, 2022
478
47
28
I am finding out how to write a script to move the camera to a given position.
Does anyone know which function should be used?
I remember that there used to be an official Melonity script for Techies' Remote Mines that could move the camera to the mine stack when it's about to explode.
Thanks in advance!!
Greetings , Try out https://docs.minority.gg/guide/
 

kaopan

New member
Feb 7, 2024
6
0
1
I have already looked into that. The class that's most related to what I want is the class Camera.
However, what I found here is just setting the camera distance.
There seems to be no function to move the camera to a given position here.

declare class Camera
{
static SetEnableSmooth(val: boolean): void;
static SetZoomDuration(val: number): void;
static SetDistance(val: number): void;
}