GetPlayerBodyNames: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Document player skin, body and head appearance API
 
Clarify player appearance API behavior
Line 24: Line 24:
== Notes ==
== Notes ==
* Available only in server-side resource scripts.
* Available only in server-side resource scripts.
* Named G1R human characters are shipped as complete prebaked body-and-head skeletal meshes.
* Named G1R characters are complete visual presets containing their original body, head and outfit or armor appearance.
* Independent head and armor visuals are shown with the <code>default</code> body.
* Use <code>default</code> to restore the editable Nameless Hero body.
* Use <code>default</code> to restore the editable Nameless Hero body.
* See [[Player body catalog]] for the complete list.
* See [[Player body catalog]] for the complete list.

Revision as of 21:43, 15 August 2026

getPlayerBodyNames

Returns every validated full-body identity preset exposed by the server.

Syntax

table getPlayerBodyNames()

Parameters

This function does not accept parameters.

Returns

Returns a one-based array of stable body keys. The first entry is default.

Examples

List every available full-body preset:

for _, bodyKey in ipairs(getPlayerBodyNames()) do
    outputDebugString(bodyKey)
end

Notes

  • Available only in server-side resource scripts.
  • Named G1R characters are complete visual presets containing their original body, head and outfit or armor appearance.
  • Independent head and armor visuals are shown with the default body.
  • Use default to restore the editable Nameless Hero body.
  • See Player body catalog for the complete list.