SceneManager:AddSceneObject

From Data Realms Wiki

Revision as of 00:48, 28 June 2012 by Beautifybot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxAddSceneObject( * The SceneObject to add. Ownership IS transferred! )
Description:
Takes any scene object and adds it to the scene in the appropriate way. If it's a TerrainObject, then it gets applied to the terrain, if it's an MO, it gets added to the correct type group in MovableMan.
ReturnsWhether the SceneObject was successfully added or not. Either way, ownership was transferred. If no success, the object was deleted.




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