Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2409fb0
Creator clips: convert a clip to the UEFN mannequin as a place clip, …
GhzGarage Dec 3, 2026
fffbd98
Creator clips: an item's clips block is read, converted, checked and …
GhzGarage Dec 3, 2026
44f3c87
Emote retarget: a plain UE4 or UE5 Mannequin clip reads as its skelet…
GhzGarage Dec 3, 2026
a84af9f
Creator clips: a UEFN clip carries the contract's full uefn bone tabl…
GhzGarage Dec 3, 2026
22bdef3
Creator clips: log the tracks a UEFN clip loses on bones outside the …
GhzGarage Dec 3, 2026
6a89e69
Creator clips: review fixes (shared clip counts toward the item total…
GhzGarage Dec 3, 2026
55af150
Creator clips: name tracks lost because the target mannequin lacks th…
GhzGarage Dec 3, 2026
7f9e76f
Creator clips test: discard the foreign test mesh
GhzGarage Dec 3, 2026
d76979e
Merge main into creator clips (carries the emote body-bone fix, #303)
GhzGarage Dec 3, 2026
2b39c95
Anim packs (mantle #333 G10): conversion on any rig, checks, the anim…
GhzGarage Dec 3, 2026
15db0ce
Built-in UEFN mannequin: add the uefn skeleton's prop and virtual bon…
GhzGarage Dec 3, 2026
dc67a60
Anim packs (mantle #333 G10): the publish path, a library-only source…
GhzGarage Dec 3, 2026
6926b55
Item clip slots: the builder's four clip fields, copied into the item…
GhzGarage Dec 3, 2026
54be4bb
Item clip fields: comment says usable item and consumable holds (matc…
GhzGarage Dec 3, 2026
f2f2b00
Sync MantleWeaponSource.h from mantle 156561df7 (clip fields' comment…
GhzGarage Dec 3, 2026
873be71
Anim packs (mantle #333 G10): one upload for two names on one animati…
GhzGarage Dec 3, 2026
06cd3d6
Review fixes: no self-referencing TArray::Add, const preview-mesh cal…
GhzGarage Dec 3, 2026
e0767bc
Anim pack test: add a copy, not an element of the same array
GhzGarage Dec 3, 2026
26acb17
Anim pack test: name the copy apart from the later local
GhzGarage Dec 3, 2026
fb5230e
Item clip slots: the consumable's early return writes the clips block…
GhzGarage Dec 3, 2026
a4f4b28
Creator clips test: a clip already converted for an earlier item stil…
GhzGarage Dec 3, 2026
d96c6e0
Anim packs: clip names follow the backend's rule (letter first; lette…
GhzGarage Dec 3, 2026
00a8d0a
Anim pack test: the largest allowed pack document is within the cook'…
GhzGarage Dec 3, 2026
d911fad
Clip slots: the preview holds the whole body in a view of any shape (…
GhzGarage Dec 3, 2026
f315393
Clip slots: an optional held item in the preview (a static or skeleta…
GhzGarage Dec 3, 2026
52b8db3
Mantle.Dev.ClipSlotShots: pictures of the clip slots in the Custom an…
GhzGarage Dec 3, 2026
14cd70a
Animation pack: each row names its source rig and has Play on a previ…
GhzGarage Dec 3, 2026
04b9833
Clip slots comment: Build an item's picker
GhzGarage Dec 3, 2026
214f991
Sync shared files from mantle d76c3cad2: creator clips G1, G2, G3 and…
GhzGarage Dec 3, 2026
36e314e
Weapon builder compiles with the usable item hold and signal delivery…
GhzGarage Dec 3, 2026
4e76023
Clip slots: the camera frames the body and stays there while clips pl…
GhzGarage Dec 3, 2026
43d90d1
Clip preview: Mantle's built-in mannequin shows as a figure of its bo…
GhzGarage Dec 3, 2026
3b48486
Clip slots: a line under the preview says when the project has no UEF…
GhzGarage Dec 3, 2026
70673b7
Sync shared files from mantle 7c469ee3c: creator clips G3 palm and gr…
GhzGarage Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Resources/ScriptApi/mantle.d.luau
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ declare extern type Player with
BreathRestored: Signal<(Player)>
--- The player has a fresh character, ready for weapons, attributes or a teleport: the first one when they join (or when Player:Spawn gives it), and every one after a death, Player:Respawn or Player:Spawn. character is the same Entity as Player.Character. Fires on the server, the tick after the character appears and after PlayerAdded for a player who just joined. Players:OnCharacter also covers characters that already exist.
CharacterAdded: Signal<(Player, Entity)>
--- A clip PlayClip started on the player ended, on the server. clip is the name you gave. reason is "finished" (it played out), "stopped" (StopClip), "replaced" (a new PlayClip, or a change of body: another avatar, or their own again), "moved" (StopOnMove and the player moved), "action" (death, a seat or a knockdown took the body) or "removed" (the player left or their character was replaced). A looping clip never finishes.
--- A clip PlayClip started on the player ended, on the server. clip is the name you gave. reason is "finished" (it played out), "stopped" (StopClip), "replaced" (a new PlayClip, an emote, or a change of body: another avatar, or their own again), "moved" (StopOnMove and the player moved), "action" (death, a seat or a knockdown took the body; an attack, reload or aim; a climb, vault, dodge or hit reaction ended a full-body clip) or "removed" (the player left or their character was replaced). A looping clip never finishes.
ClipEnded: Signal<(Player, string, string)>
--- A clip PlayClip started on the player crossed a marker its creator put in it, on the server, at the time the marker was set (a loop fires it every pass). name is the marker: "impact", the moment a swing lands. Only the avatar's own slots and extras carry it (a place clip you name by id fires none). Footstep markers stay on the player's own machine and fire nothing.
--- A clip PlayClip started on the player crossed a marker its creator put in it, on the server, at the time the marker was set (a loop fires it every pass). name is the marker: "impact", the moment a swing lands. A slot, an extra or a place clip fires it when its creator set an "impact" marker in it. Footstep markers stay on the player's own machine and fire nothing.
ClipEvent: Signal<(Player, string, string)>
--- The character crouched (the key, a slide or ForceCrouch). Fires on the server and on every client.
CrouchStarted: Signal<(Player)>
Expand Down Expand Up @@ -429,7 +429,7 @@ declare extern type Player with
function Launch(self, velocity: Vector3, options: {Override: boolean?, OverrideZ: boolean?}?): boolean
--- Call handler with the player's attribute value now and every time it changes. The easy way to keep a HUD or nameplate in sync.
function ObserveAttribute(self, name: string, handler: (value: any) -> ()): Connection
--- Play a clip on the player's body, on the server, and tell everyone (a player who joins later sees it in step). For now this works on a player who is a Custom avatar (SetAvatar): clip is one of its slots ("roar", "attack"), "slot:N" (the Nth clip of a slot, from 0), one of its extras by name, or a place clip id (ast_...) made on the avatar's own skeleton. On a player in a human avatar it returns false (clips on human players come with the creator-clips work, #333). Options: Layer "full" (the whole body, the default) or "upper" (from the avatar's upper-body bone up, the legs keep moving; an avatar with no upper-body bone plays it full); Loop (left out: a slot's own rule, so an attack plays once and a walk loops); PlayRate (0.1 to 4, 1 by default); StartOffset (seconds into the clip); BlendIn and BlendOut (seconds, 0 to 2, 0.2 when left out: the fade into the clip and out of it); StopOnMove (stop when the player moves); KeepTool (a Custom avatar holds no tool). The last call wins: a new clip replaces the one that plays (ClipEnded "replaced"). Returns false, and plays nothing, with a reason in the script log, when the clip is unknown, the player is dead, or they are not a Custom avatar. (server only)
--- Play a clip on the player's body, on the server, and tell everyone (a player who joins later sees it in step). On a player in a human avatar, clip is a place clip id (ast_...) made on the UEFN mannequin. On a Custom avatar (SetAvatar), clip is one of its slots ("roar", "attack"), "slot:N" (the Nth clip of a slot, from 0), one of its extras by name, or a place clip id made on the avatar's own skeleton. Options: Layer "full" (the whole body, the default) or "upper" (the upper body: from spine_01 up on a human, from the avatar's upper-body bone up on a Custom avatar, which plays it full when it has none; the legs keep moving); Loop (left out: a slot's own rule, so an attack plays once and a walk loops; a place clip plays once); PlayRate (0.1 to 4, 1 by default); StartOffset (seconds into the clip); BlendIn and BlendOut (seconds, 0 to 2, 0.2 when left out: the fade into the clip and out of it); StopOnMove (stop when the player moves or leaves the ground); KeepTool (a full-body clip on a human puts the held tool away unless KeepTool is true; a Custom avatar holds no tool). The clip ends early when the player dies, is knocked down or sits, when they attack, reload or aim, and (a full-body clip) when they climb, vault or dodge or react to a hit; an upper-body clip steps aside for a climb or vault and comes back after it. The last call wins: a new clip replaces the one that plays (ClipEnded "replaced"), an emote replaces the clip and a clip the emote. Returns false, and plays nothing, with a reason in the script log, when the clip is unknown or made on another skeleton, or the player is dead, knocked down or seated. (server only)
function PlayClip(self, clip: string, options: {Layer: string?, Loop: boolean?, PlayRate: number?, StartOffset: number?, BlendIn: number?, BlendOut: number?, StopOnMove: boolean?, KeepTool: boolean?}?): boolean
--- Knock the character down: it goes limp for everyone, the player cannot move or act, and when the time is up (or Recover is called) it stands back up where it lies with a get-up animation. seconds is how long to stay down, 0.1 to 300; leave it out to stay down until Recover (at most five minutes). velocity is an optional shove in centimeters per second; without it the character keeps the speed it had. Ragdolled fires now and Recovered when it gets up. Returns false when the player has no character on foot, is dead, is sitting in a vehicle or is already knocked down. (server only)
function Ragdoll(self, seconds: number?, velocity: Vector3?): boolean
Expand Down Expand Up @@ -965,6 +965,8 @@ declare extern type BackpackService with
LoadoutChanged: Signal<(Player, string)>
--- The local player's Backpack changed: a Tool came or went, a different slot is in the hands, or a consumable's uses changed. Redraw from GetLocal.
LocalChanged: Signal<()>
--- One use of anything a player holds, on the server, whatever it is: everything Backpack.Fired counts for a weapon (each shot, launch, swing, beam start and gravity gun launch), each consumable's use as it starts (Backpack.ItemUsed is its effect moment, which a canceled use never reaches), and each use of a usable item (hold "item", which does nothing by itself: this is where your script gives it its behavior). toolId is the Tool's id in the player's Backpack ("fists" for the fists), docName its name. Guarding, aiming, reloading and switching are not uses. Example: `Backpack.ToolUsed:Connect(function(player, toolId, name) if name == "Flashlight" then toggleLamp(player) end end)`. (server only)
ToolUsed: Signal<(Player, string, string)>
--- Put a whole loadout on the weapon, all or nothing: the slots it does not name end up empty, the stats it does not name go back to 1, and a loadout with no round key leaves the weapon's round as it is (1.81: ClearRound takes it off). Returns { ok = true }, or { ok = false, error = ... } as SetAttachment does ("not an option" when the loadout names an option the weapon no longer has, for the script to decide what to do). A loadout that is not the right shape errors. (server only)
function ApplyLoadout(self, player: Player, toolId: string, loadout: {attachments: {[string]: string}?, stats: {[string]: number}?, color: string?, round: {Name: string, DamageMultiplier: number?, Speed: number?, Color: string?}?}): {ok: boolean, error: string?}
--- Empty the player's Backpack, leaving only fists. Returns how many Tools were removed. (server only)
Expand Down
8 changes: 5 additions & 3 deletions Resources/ScriptApi/mantle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ interface Player {
readonly breathRestored: Signal<[player: Player]>;
/** The player has a fresh character, ready for weapons, attributes or a teleport: the first one when they join (or when Player:Spawn gives it), and every one after a death, Player:Respawn or Player:Spawn. character is the same Entity as Player.Character. Fires on the server, the tick after the character appears and after PlayerAdded for a player who just joined. Players:OnCharacter also covers characters that already exist. */
readonly characterAdded: Signal<[player: Player, character: Entity]>;
/** A clip PlayClip started on the player ended, on the server. clip is the name you gave. reason is "finished" (it played out), "stopped" (StopClip), "replaced" (a new PlayClip, or a change of body: another avatar, or their own again), "moved" (StopOnMove and the player moved), "action" (death, a seat or a knockdown took the body) or "removed" (the player left or their character was replaced). A looping clip never finishes. */
/** A clip PlayClip started on the player ended, on the server. clip is the name you gave. reason is "finished" (it played out), "stopped" (StopClip), "replaced" (a new PlayClip, an emote, or a change of body: another avatar, or their own again), "moved" (StopOnMove and the player moved), "action" (death, a seat or a knockdown took the body; an attack, reload or aim; a climb, vault, dodge or hit reaction ended a full-body clip) or "removed" (the player left or their character was replaced). A looping clip never finishes. */
readonly clipEnded: Signal<[player: Player, clip: string, reason: string]>;
/** A clip PlayClip started on the player crossed a marker its creator put in it, on the server, at the time the marker was set (a loop fires it every pass). name is the marker: "impact", the moment a swing lands. Only the avatar's own slots and extras carry it (a place clip you name by id fires none). Footstep markers stay on the player's own machine and fire nothing. */
/** A clip PlayClip started on the player crossed a marker its creator put in it, on the server, at the time the marker was set (a loop fires it every pass). name is the marker: "impact", the moment a swing lands. A slot, an extra or a place clip fires it when its creator set an "impact" marker in it. Footstep markers stay on the player's own machine and fire nothing. */
readonly clipEvent: Signal<[player: Player, clip: string, name: string]>;
/** The character crouched (the key, a slide or ForceCrouch). Fires on the server and on every client. */
readonly crouchStarted: Signal<[player: Player]>;
Expand Down Expand Up @@ -434,7 +434,7 @@ interface Player {
launch(velocity: Vector3, options?: { override?: boolean | undefined; overrideZ?: boolean | undefined } | undefined): boolean;
/** Call handler with the player's attribute value now and every time it changes. The easy way to keep a HUD or nameplate in sync. */
observeAttribute(name: string, handler: (value: any) => void): Connection;
/** Play a clip on the player's body, on the server, and tell everyone (a player who joins later sees it in step). For now this works on a player who is a Custom avatar (SetAvatar): clip is one of its slots ("roar", "attack"), "slot:N" (the Nth clip of a slot, from 0), one of its extras by name, or a place clip id (ast_...) made on the avatar's own skeleton. On a player in a human avatar it returns false (clips on human players come with the creator-clips work, #333). Options: Layer "full" (the whole body, the default) or "upper" (from the avatar's upper-body bone up, the legs keep moving; an avatar with no upper-body bone plays it full); Loop (left out: a slot's own rule, so an attack plays once and a walk loops); PlayRate (0.1 to 4, 1 by default); StartOffset (seconds into the clip); BlendIn and BlendOut (seconds, 0 to 2, 0.2 when left out: the fade into the clip and out of it); StopOnMove (stop when the player moves); KeepTool (a Custom avatar holds no tool). The last call wins: a new clip replaces the one that plays (ClipEnded "replaced"). Returns false, and plays nothing, with a reason in the script log, when the clip is unknown, the player is dead, or they are not a Custom avatar. (server only) */
/** Play a clip on the player's body, on the server, and tell everyone (a player who joins later sees it in step). On a player in a human avatar, clip is a place clip id (ast_...) made on the UEFN mannequin. On a Custom avatar (SetAvatar), clip is one of its slots ("roar", "attack"), "slot:N" (the Nth clip of a slot, from 0), one of its extras by name, or a place clip id made on the avatar's own skeleton. Options: Layer "full" (the whole body, the default) or "upper" (the upper body: from spine_01 up on a human, from the avatar's upper-body bone up on a Custom avatar, which plays it full when it has none; the legs keep moving); Loop (left out: a slot's own rule, so an attack plays once and a walk loops; a place clip plays once); PlayRate (0.1 to 4, 1 by default); StartOffset (seconds into the clip); BlendIn and BlendOut (seconds, 0 to 2, 0.2 when left out: the fade into the clip and out of it); StopOnMove (stop when the player moves or leaves the ground); KeepTool (a full-body clip on a human puts the held tool away unless KeepTool is true; a Custom avatar holds no tool). The clip ends early when the player dies, is knocked down or sits, when they attack, reload or aim, and (a full-body clip) when they climb, vault or dodge or react to a hit; an upper-body clip steps aside for a climb or vault and comes back after it. The last call wins: a new clip replaces the one that plays (ClipEnded "replaced"), an emote replaces the clip and a clip the emote. Returns false, and plays nothing, with a reason in the script log, when the clip is unknown or made on another skeleton, or the player is dead, knocked down or seated. (server only) */
playClip(clip: string, options?: { layer?: string | undefined; loop?: boolean | undefined; playRate?: number | undefined; startOffset?: number | undefined; blendIn?: number | undefined; blendOut?: number | undefined; stopOnMove?: boolean | undefined; keepTool?: boolean | undefined }): boolean;
/** Knock the character down: it goes limp for everyone, the player cannot move or act, and when the time is up (or Recover is called) it stands back up where it lies with a get-up animation. seconds is how long to stay down, 0.1 to 300; leave it out to stay down until Recover (at most five minutes). velocity is an optional shove in centimeters per second; without it the character keeps the speed it had. Ragdolled fires now and Recovered when it gets up. Returns false when the player has no character on foot, is dead, is sitting in a vehicle or is already knocked down. (server only) */
ragdoll(seconds?: number | undefined, velocity?: Vector3 | undefined): boolean;
Expand Down Expand Up @@ -972,6 +972,8 @@ interface BackpackService {
readonly loadoutChanged: Signal<[player: Player, toolId: string]>;
/** The local player's Backpack changed: a Tool came or went, a different slot is in the hands, or a consumable's uses changed. Redraw from GetLocal. */
readonly localChanged: Signal<[]>;
/** One use of anything a player holds, on the server, whatever it is: everything Backpack.Fired counts for a weapon (each shot, launch, swing, beam start and gravity gun launch), each consumable's use as it starts (Backpack.ItemUsed is its effect moment, which a canceled use never reaches), and each use of a usable item (hold "item", which does nothing by itself: this is where your script gives it its behavior). toolId is the Tool's id in the player's Backpack ("fists" for the fists), docName its name. Guarding, aiming, reloading and switching are not uses. Example: `Backpack.ToolUsed:Connect(function(player, toolId, name) if name == "Flashlight" then toggleLamp(player) end end)`. (server only) */
readonly toolUsed: Signal<[player: Player, toolId: string, docName: string]>;
/** Put a whole loadout on the weapon, all or nothing: the slots it does not name end up empty, the stats it does not name go back to 1, and a loadout with no round key leaves the weapon's round as it is (1.81: ClearRound takes it off). Returns { ok = true }, or { ok = false, error = ... } as SetAttachment does ("not an option" when the loadout names an option the weapon no longer has, for the script to decide what to do). A loadout that is not the right shape errors. (server only) */
applyLoadout(player: Player, toolId: string, loadout: { attachments?: Record<string, string> | undefined; stats?: Record<string, number> | undefined; color?: string | undefined; round?: { name: string; damageMultiplier?: number | undefined; speed?: number | undefined; color?: string | undefined } | undefined }): { ok: boolean; error?: string | undefined };
/** Empty the player's Backpack, leaving only fists. Returns how many Tools were removed. (server only) */
Expand Down
Loading
Loading