Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 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
4b8d867
Build an item: first screen picks the type, consumables get the share…
GhzGarage Dec 3, 2026
6922290
Merge remote-tracking branch 'origin/claude/suspicious-bhabha-32cc8d'…
GhzGarage Dec 3, 2026
25c7bdf
Build an item: review fixes (complete UAnimSequence in the builder he…
GhzGarage Dec 3, 2026
ee4d011
Build an item: Usable item type (hold item, delivery signal): own scr…
GhzGarage Dec 3, 2026
e42b3cc
Sync shared files from mantle 515daa65f: script API typings (mantle #…
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
d2d7755
Build an item: usable item in the tab, menu and README text; delivery…
GhzGarage Dec 3, 2026
aaf65ac
Sync MantleWeaponSource.h from mantle 8116d405f: Item hold and Signal…
GhzGarage Dec 3, 2026
a2d2585
Merge remote-tracking branch 'origin/claude/suspicious-bhabha-32cc8d'…
GhzGarage Dec 3, 2026
220eb6d
Weapon builder compiles with the usable item hold and signal delivery…
GhzGarage Dec 3, 2026
92fa1c8
Merge branch 'claude/p2-item-hold-compile' into claude/p2-build-an-item
GhzGarage Dec 3, 2026
4f3c34a
Build an item: maintainer command Mantle.Dev.ItemBuilderShots (screen…
GhzGarage Dec 3, 2026
287ac95
Item builder shots: pictures of the type picker and the Animations sc…
GhzGarage Dec 3, 2026
611c3d1
Sync shared files from mantle f560cc03d: usable item weapon asset (ma…
GhzGarage Dec 3, 2026
5d54c9c
Build an item test: quiet its own warnings in the retarget preview te…
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
2f92bf5
Sync shared files from mantle 462917a8e: shared palm helper and scrip…
GhzGarage Dec 3, 2026
b654701
Merge remote-tracking branch 'origin/claude/suspicious-bhabha-32cc8d'…
GhzGarage Dec 3, 2026
74e1f01
Build an item: the Hold preview holds the item in the palm, placed as…
GhzGarage Dec 3, 2026
a60a3ba
Build an item: the held item follows the body the preview plays on, a…
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
3b12824
Merge P1's tip: take its clip slots (PreviewAs, PlayClip) and use FMa…
GhzGarage Dec 3, 2026
1cfd7a4
Merge remote-tracking branch 'origin/claude/suspicious-bhabha-32cc8d'…
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
f7e4b4e
Merge remote-tracking branch 'origin/claude/suspicious-bhabha-32cc8d'…
GhzGarage Dec 3, 2026
4e76023
Clip slots: the camera frames the body and stays there while clips pl…
GhzGarage Dec 3, 2026
7adb459
Consumables: write the hidden effect moment with the creator's Use cl…
GhzGarage Dec 3, 2026
46ab748
Build an item: say when a consumable's effect happens, and grey out t…
GhzGarage Dec 3, 2026
adbbccf
Consumables: do not ask the loader for a Use clip that is gone; give …
GhzGarage Dec 3, 2026
eeafd8d
Fix a comment (review, mantle #333 P3)
GhzGarage Dec 3, 2026
43d90d1
Clip preview: Mantle's built-in mannequin shows as a figure of its bo…
GhzGarage Dec 3, 2026
ba0020d
Sync shared files from mantle 3e2dd656e: the consumable effect list i…
GhzGarage Dec 3, 2026
89e4cdf
Consumables: export stamina, hunger and thirst with their amount (man…
GhzGarage Dec 3, 2026
4bc39b0
Build an item: the consumable effect picker with its amount; leave Ma…
GhzGarage Dec 3, 2026
3b48486
Clip slots: a line under the preview says when the project has no UEF…
GhzGarage Dec 3, 2026
82c1199
Sync shared files from mantle 3e7b74895: consumable effect values and…
GhzGarage Dec 3, 2026
9b66d79
Merge remote-tracking branch 'origin/claude/suspicious-bhabha-32cc8d'…
GhzGarage Dec 3, 2026
c2fe1bf
Sync shared files from mantle 7c469ee3c: the default grip of an item …
GhzGarage Dec 3, 2026
f6c68d2
Build an item: no grip is written until the creator moves it; step fo…
GhzGarage Dec 3, 2026
70673b7
Sync shared files from mantle 7c469ee3c: creator clips G3 palm and gr…
GhzGarage Dec 3, 2026
835f766
Build an item: parts left over from a gun are not baked into a consum…
GhzGarage Dec 3, 2026
ef5cf35
Build an item: a consumable and a usable item keep the model's own up…
GhzGarage Dec 3, 2026
b43806f
Merge remote-tracking branch 'origin/claude/suspicious-bhabha-32cc8d'…
GhzGarage Dec 3, 2026
19279a1
Merge remote-tracking branch 'origin/claude/p3-consumable-effect-mome…
GhzGarage Dec 3, 2026
397fd6e
Mantle.Dev.ItemBuilderShots: its consumable gives hunger, so the run …
GhzGarage Dec 3, 2026
2bfa128
Sync shared files from mantle 2b17edf38: the creator clips line with …
GhzGarage Dec 3, 2026
31c3222
Build an item: a consumable and a usable item have quarter-turn butto…
GhzGarage Dec 3, 2026
6b68da1
A comment: items have quarter turns now (review, mantle #333)
GhzGarage Dec 3, 2026
40827f6
Mantle.Dev.BuildWeapon takes a consumable's or a usable item's clips,…
GhzGarage Dec 3, 2026
79344dd
Sync shared files from mantle b1c49029f: script typings (creator clip…
GhzGarage Dec 3, 2026
a43cb53
Sync shared files from mantle 2d6785164: the final creator clips line…
GhzGarage Dec 3, 2026
2d65289
Dev pictures: the size screen as it opens, tipped forward and framed …
GhzGarage Dec 3, 2026
6043ad4
Place storage: the 32 limit counts vehicles, weapons and wheels, not …
GhzGarage Dec 3, 2026
d701a3a
Build an item: a turn frames a consumable or a usable item again, so …
GhzGarage Dec 3, 2026
74b170f
Test locally carries a consumable's and a usable item's own clips (ma…
GhzGarage Dec 3, 2026
ba013ef
Publish test: the storage cap is the contract's, not 32 (mantle #475)
GhzGarage Dec 3, 2026
e810e79
Sync shared files from mantle e267abdd6: script packages outside the …
GhzGarage Dec 3, 2026
3dfa381
Test: the bundled clip is saved into the item's folder, so it is not …
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ These are all in the **Mantle** dropdown:
| Tool | What it does | Docs |
|---|---|---|
| **Build a vehicle...** | Makes a drivable vehicle from your own 3D model. | [Vehicles](https://mantleplatform.com/docs/creators/vehicles/) |
| **Build a weapon...** | Turns a 3D model into a gun, bow, blade or other weapon. | [Weapons](https://mantleplatform.com/docs/creators/weapons/) |
| **Build an item...** | Turns a 3D model into an item: a weapon (gun, bow, blade and more), a consumable, or a usable item your script gives a purpose. Consumables and usable items can bring their own animations. | [Weapons](https://mantleplatform.com/docs/creators/weapons/) |
| **Cosmetics...** | Publishes avatars, hair, clothing, accessories and emotes. | [Avatars and emotes](https://mantleplatform.com/docs/creators/avatars-emotes/), [Clothing](https://mantleplatform.com/docs/creators/clothing/) |
| **Library...** | Finds vehicles, weapons and script packages, yours or other creators' public ones, and adds them to your place. | [Script packages](https://mantleplatform.com/docs/creators/script-packages/) |
| **Voxelize selected meshes** | Turns meshes into a block world, or smooth ground, that players can dig and build in. | [Block worlds](https://mantleplatform.com/docs/creators/block-worlds/) |
Expand Down
42 changes: 36 additions & 6 deletions Resources/ScriptApi/mantle.d.luau

Large diffs are not rendered by default.

42 changes: 36 additions & 6 deletions Resources/ScriptApi/mantle.d.ts

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions Resources/ScriptApi/mantle.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Entity:
"""Push a physics entity: impulse is in kg*cm/s along the world axes, so its velocity changes by impulse / Mass. Does nothing while it is Anchored. Errors on an entity with no physics block."""
...
def attach_to(self, target: Entity, options: dict[str, Any] = ..., /) -> None:
"""Stick this entity to target so it follows it wherever it goes: a car, a lift or moving platform, an NPC, or a player's character (player.Character). It is sent to players once and then rides by itself, never lagging behind. options.Offset is where it sits in the target's own space (cm, (0, 0, 0) by default: the target's middle, or the bone's), options.Rotation its turn there as (pitch, yaw, roll) degrees, and options.Bone a bone or socket of the target's skeleton ('hand_r', 'head', 'spine_03') to follow instead of the whole target; Bone = 'HeldItem' follows where the player's held tool or gun sits, so a light attached there points where they aim. Attaching again moves it to the new target or offset. What can be attached: an entity a script may move (a clone, an Assets:Spawn mesh, a light, an effect, a place entity marked 'dynamic', a physics entity); a player's character, an NPC or a vehicle can't be (attach things to them instead). A physics entity is held Anchored while attached, and Detach gives it back what Anchored was, so a crate let go off a truck falls. Attached to a player, an NPC, a vehicle or a physics entity it blocks nothing, so it can't push what carries it (overlaps, Touched and raycasts still find it); attached to anything else it keeps its collision, so a floor riding a lift still holds players up. If the target goes (destroyed, or a player's character replaced when they respawn or leave), the attachment ends and the entity stays where it was. Setting its Position or Rotation, or tweening either, detaches it first. On a player's character Offset may be at most 50 cm and the entity at most 2 m across; anywhere else Offset may be up to 100 m. A place holds at most 256 attachments. Errors for an unknown Bone, a target that rides this entity, or past these limits. On the server everyone sees it; on a client only that player does (a physics entity is attached by a server script only). An attached entity can't be cloned. Example, a flashlight: `local light = Lights:Spawn('Spot', Vector3.new(0, 0, 0)) light:AttachTo(player.Character, {Bone = 'HeldItem', Offset = Vector3.new(0, 20, 0)})`."""
"""Stick this entity to target so it follows it wherever it goes: a car, a lift or moving platform, an NPC, or a player's character (player.Character). It is sent to players once and then rides by itself, never lagging behind. options.Offset is where it sits in the target's own space (cm, (0, 0, 0) by default: the target's middle, or the bone's), options.Rotation its turn there as (pitch, yaw, roll) degrees, and options.Bone a bone or socket of the target's skeleton ('hand_r', 'head', 'spine_03') to follow instead of the whole target; Bone = 'HeldItem' follows where the player's held tool or gun sits, so a light attached there points where they aim. While a usable item or a consumable is in their hand it follows the palm holding it instead, turned as the item is (Offset and Rotation are then along the item mesh's own axes). Attaching again moves it to the new target or offset. What can be attached: an entity a script may move (a clone, an Assets:Spawn mesh, a light, an effect, a place entity marked 'dynamic', a physics entity); a player's character, an NPC or a vehicle can't be (attach things to them instead). A physics entity is held Anchored while attached, and Detach gives it back what Anchored was, so a crate let go off a truck falls. Attached to a player, an NPC, a vehicle or a physics entity it blocks nothing, so it can't push what carries it (overlaps, Touched and raycasts still find it); attached to anything else it keeps its collision, so a floor riding a lift still holds players up. If the target goes (destroyed, or a player's character replaced when they respawn or leave), the attachment ends and the entity stays where it was. Setting its Position or Rotation, or tweening either, detaches it first. On a player's character Offset may be at most 50 cm and the entity at most 2 m across; anywhere else Offset may be up to 100 m. A place holds at most 256 attachments. Errors for an unknown Bone, a target that rides this entity, or past these limits. On the server everyone sees it; on a client only that player does (a physics entity is attached by a server script only). An attached entity can't be cloned. Example, a flashlight: `local light = Lights:Spawn('Spot', Vector3.new(0, 0, 0)) light:AttachTo(player.Character, {Bone = 'HeldItem', Offset = Vector3.new(0, 20, 0)})`."""
...
def clear_highlight(self) -> None:
"""Remove the outline SetHighlight drew around this entity. On the server it goes for everyone; on a client it removes only that client's own highlight (the server's, if any, shows again). Does nothing when it has none."""
Expand Down Expand Up @@ -213,6 +213,10 @@ class Player:
health: Optional[float]
health_enabled: bool
held_tool_id: Optional[str]
hunger: Optional[float]
hunger_damage: Optional[float]
hunger_drain: Optional[float]
hunger_enabled: Optional[bool]
input_enabled: Optional[bool]
is_crouched: Optional[bool]
is_grounded: Optional[bool]
Expand All @@ -224,8 +228,10 @@ class Player:
jump_stamina_cost: Optional[float]
max_breath: Optional[float]
max_health: Optional[float]
max_hunger: Optional[float]
max_shield: Optional[float]
max_stamina: Optional[float]
max_thirst: Optional[float]
name: str
ping: float
place_avatar: Optional[str]
Expand All @@ -246,6 +252,10 @@ class Player:
stamina_regen: Optional[float]
stamina_regen_delay: Optional[float]
team: Optional[str]
thirst: Optional[float]
thirst_damage: Optional[float]
thirst_drain: Optional[float]
thirst_enabled: Optional[bool]
tools_enabled: Optional[bool]
top_tucked: bool
user_id: str
Expand All @@ -263,13 +273,15 @@ class Player:
crouch_started: Signal
crouch_stopped: Signal
damaged: Signal
dehydrated: Signal
died: Signal
dimension_changed: Signal
dodged: Signal
dropped: Signal
entered_water: Signal
grab_refused: Signal
health_changed: Signal
hunger_changed: Signal
jumped: Signal
landed: Signal
left_water: Signal
Expand All @@ -284,9 +296,11 @@ class Player:
sprint_stopped: Signal
staff_extra_used: Signal
stamina_changed: Signal
starving: Signal
stun_ended: Signal
stunned: Signal
surfaced: Signal
thirst_changed: Signal
went_underwater: Signal
def fade_screen(self, options: Optional[dict[str, Any]] = ..., /) -> None:
"""Fade this player's screen to a color and back (server only), as Camera:Fade does on their own client: player:FadeScreen({To = 1, Duration = 0.4, Audio = true}), move them, then player:FadeScreen({To = 0}). options: To (how covered the screen ends, 0 clear to 1 solid color, default 1), Duration (seconds, 0 to 60, default 0.5; 0 cuts), Color ('#RRGGBB', default black), Audio (default false: true turns all in-game sound down with the picture, all the way at 1; voice chat is not faded; a later fade back toward clear brings the sound up with the picture) and Hold (default true: the screen stays at To once there; false clears it when the fade ends, for a flash). The fade runs from wherever the screen is now, so a fade back in started halfway through a fade out turns back without a jump, and a new fade replaces the last one, its color at once. A fade ending at 0 clears the screen and the sound. Only the 3D picture fades: the HUD, script UI (labels placed in the world included) and the Esc menu draw over it and stay usable. It is kept through a respawn (so a fade can cover one) and clears at once when the script that made it stops. An unknown option or a value of the wrong type is an error that names it. The player's client scripts can fade too; the last fade wins. Does nothing for a player who has left."""
Expand Down Expand Up @@ -335,7 +349,7 @@ Example: player:Launch(Vector3.new(0, 0, 1500), {OverrideZ = true})"""
"""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."""
...
def play_clip(self, clip: str, options: dict[str, Any] = ..., /) -> bool:
"""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."""
"""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, or a built-in clip: 'pickup', 'drink', 'use', 'sit_bench' (loops), 'fidget' or 'look_around'. 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. On either, clip can be '<pack>/<name>': the clip named name in the animation pack the place pins under the storage name pack (an avatarStorage entry of kind animPack), made on the body's 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 (a pack the place does not pin, or a name the pack lacks, is unknown), or the player is dead, knocked down or seated."""
...
def ragdoll(self, seconds: Optional[float] = ..., velocity: Optional[Vector3] = ..., /) -> bool:
"""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."""
Expand Down Expand Up @@ -369,7 +383,7 @@ TopDown options: Distance (cm from the character, default 1400), MinDistance and
"""Stop the clip PlayClip started on the player; ClipEnded fires with 'stopped'. blendOut (seconds, 0 to 2) is how long the body takes to fade out of the clip; left out, the clip's own BlendOut (0.2 s by default). Returns false when nothing played."""
...
def take_damage(self, amount: float, source: Optional[Player] = ..., damageType: Optional[str] = ..., /) -> bool:
"""Hurt the character through the same path weapons use, so the game's damage rules apply: friendly fire, Armor, then Shield, then health. source is the player to credit: if this hit kills, Died names them as the killer. damageType tags the hit for Damaged and Died ('Generic' when left out); use a built-in such as 'Bullet', 'Melee', 'Explosion', 'Fall', 'Vehicle', 'Area', 'Magic' or 'Drown', or any word of your own up to 32 characters, such as 'Poison'. Returns false when the player has no character on foot (respawning or driving), is already dead, or nothing got through (friendly fire off, or Armor 100)."""
"""Hurt the character through the same path weapons use, so the game's damage rules apply: friendly fire, Armor, then Shield, then health. source is the player to credit: if this hit kills, Died names them as the killer. damageType tags the hit for Damaged and Died ('Generic' when left out); use a built-in such as 'Bullet', 'Melee', 'Explosion', 'Fall', 'Vehicle', 'Area', 'Magic', 'Drown', 'Hunger' or 'Thirst', or any word of your own up to 32 characters, such as 'Poison'. Returns false when the player has no character on foot (respawning or driving), is already dead, or nothing got through (friendly fire off, or Armor 100)."""
...
def teleport(self, position: Vector3, /) -> bool:
"""Move the player's character instantly. Always lands exactly at position, even inside solid geometry; returns false only when the player has no character to move right now."""
Expand Down Expand Up @@ -941,6 +955,7 @@ class _BackpackService:
item_used: Signal
loadout_changed: Signal
local_changed: Signal
tool_used: Signal
def apply_loadout(self, player: Player, toolId: str, loadout: dict[str, Any], /) -> dict[str, Any]:
"""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."""
...
Expand Down
Loading
Loading