GetPlayerHeadNames

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 21:43, 15 August 2026 by QCherry (talk | contribs) (Clarify player appearance API behavior)
Jump to navigation Jump to search

getPlayerHeadNames

Returns every independently selectable Nameless Hero head option.

Syntax

table getPlayerHeadNames()

Parameters

This function does not accept parameters.

Returns

Returns default, head_01 and head_02 in a one-based array.

Examples

List the available independent heads:

for _, headKey in ipairs(getPlayerHeadNames()) do
    outputDebugString(headKey)
end

Notes

  • Available only in server-side resource scripts.
  • The G1R MO_Player Mutable exposes only Head_01 and Head_02 as independent head choices.
  • These choices are visually supported only with the default body. Named body presets retain their original head.