LookToString
A look as one line - what a database column keeps.
"body=m_body_tan_02;head=m_head_004;hair=m_hair_005_blonde;beard=m_beard_03", the parts left out missing from it,
"" for no look at all; a woman’s starts with gender=female;. SetPlayerLook, SetActorLook and
LookFromString take the line back; a player’s client half has the same pair, so the line may travel in a script
event too.
Syntax
Section titled “Syntax”LookToString(look)| Parameter | Type | |
|---|---|---|
look |
table | string | a look |
Returns
Section titled “Returns”string - the one-line form
Example
Section titled “Example”db:Execute("UPDATE players SET look = @l WHERE name = @n", { l = LookToString(GetPlayerLook(pid)), n = name })See also
Section titled “See also”LookFromString · SetPlayerLook · the Looks and character creation group of the index
