OnLookChange
The player’s own look changed - the server’s word.
The mode gave the player a look (SetPlayerLook), took the one the script asked for (RequestLookChange), or took
it off; the table is what GetPlayerLook returns from now on. A creator closes itself here: the look it asked for
is the player’s.
Syntax
Section titled “Syntax”function OnLookChange(look) -- ...end| Parameter | Type | |
|---|---|---|
look |
table | {body, head, hair, beard, gender} - the parts the mode set (a part the soul decides is absent); gender is "female" on a woman’s look |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnLookChange(look) if creating then creating = false HideLookPreview() ClearUi() SetKeyboardCapture(false) ShowNotification("Your character is ready.") endendSee also
Section titled “See also”RequestLookChange · GetPlayerLook · the Looks and the character creator group of the index
