API:PregameRandomFeatures
From RoR Wiki
UI Lua API · Pregame functions
Version: WAR 1.4.8
Gives the character being created random appearance features.
PregameRandomFeatures()
Arguments
None.
Returns
Nothing.
Details
- The call only works in the pregame state while the character creation data is set up. At any other time it does nothing.
- All appearance features of the preview character get random values, and the preview is redrawn.
- Afterwards the client fires
SystemData.Events.CHARACTER_CREATE_FEATURES_UPDATEDwith the updated feature table, as PregameSetFeature does.
Errors
None.
Example
From interfacecore/source/characterselectwindow.lua:
function CharacterSelectWindow.RandomFeatures()
PregameRandomFeatures()
end
