PresetManager:GetRandomOfGroupInModuleSpace

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxGetRandomOfGroupInModuleSpace( * Ownership of the list or the Entitys placed in it are NOT transferred!
  • The group to randomly select from. "All" will look in all.
  • The name of the least common denominator type of the Entity:s you want.
  • "All" will look at all types.
  • Which module to get the instances for, in addition to all groups in official modules loaded earlier than the one specified here. -1 means get ALL groups ever reg'd. )
Description:
Returns a previously read in (defined) Entity which is associated with a specific group, randomly selected and only exist in a specific module space.
ReturnsThe randomly select preset, if any was found with thse search params. Ownership is NOT transferred!




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools