SceneManager:AddSceneObject

From Data Realms Wiki

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

Latest revision as of 00:48, 28 June 2012

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