PresetManager:GetRandomOfGroup

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxGetRandomOfGroup( * The group to randomly select an Entity from. "All" will look in all.
  • The name of the least common denominator type of the Entitys you want.
  • "All" will look at all types.
  • Whether to only get those of one specific DataModule (0-n), or all (-1). )
Description:
Returns a previously read in (defined) Entity which is randomly selected from a specific group.
ReturnsThe Entity preset that was randomly selected. Ownership is NOT transferred!




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