This probably doesn't need to be a thing

This commit is contained in:
jordan4ibanez 2024-05-09 01:43:00 -04:00
parent 095174585e
commit ed01f2f906

View File

@ -5,6 +5,7 @@ namespace animationStation {
const create3d = vector.create3d;
const loadFiles = utility.loadFiles;
const fakeRef = utility.fakeRef;
const tickRate = utility.tickRate;
loadFiles(["master_containers"]);
@ -91,6 +92,22 @@ namespace animationStation {
return true;
}
/**
* Set a player's bone rotation.
* @param player The player.
* @param boneName The bone.
* @param rotation The rotation (in radians).
*/
export function setPlayerBoneRotation(player: ObjectRef, boneName: string, rotation: Vec3): void {
player.set_bone_override(boneName, {
rotation: {
vec: rotation,
interpolation: tickRate,
absolute: false
}
});
}
/**
* Set a bone animation which synchronizes with the current progress of another bone.
* @param player The player.