PresetManager:GetRandomOfGroup

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
Beautifybot (Talk | contribs)
(updating function page)

Latest revision as of 00:45, 28 June 2012

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