GetPlayerHeadNames: 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 25: Line 25:
* Available only in server-side resource scripts.
* Available only in server-side resource scripts.
* The G1R <code>MO_Player</code> Mutable exposes only <code>Head_01</code> and <code>Head_02</code> as independent head choices.
* The G1R <code>MO_Player</code> Mutable exposes only <code>Head_01</code> and <code>Head_02</code> as independent head choices.
* These choices are compatible only with the <code>default</code> body.
* These choices are visually supported only with the <code>default</code> body. Named body presets retain their original head.


[[Category:Lua Functions]]
[[Category:Lua Functions]]

Revision as of 21:43, 15 August 2026

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.