GetPlayerHeadNames: Difference between revisions
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 | * 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_PlayerMutable exposes onlyHead_01andHead_02as independent head choices. - These choices are visually supported only with the
defaultbody. Named body presets retain their original head.