create ( url ) end function init ( self ) - No factory resources are loaded when the factory’s parent - collection is loaded. You can also provide a vector3 where each component specifies scaling along the corresponding axis.įunction load_complete ( self, url, result ) - Loading is complete, resources are ready to spawn self. The scale can be expressed as a number (greater than 0) which specifies uniform scaling along all axes. (optional) The scale of the spawned game object. See the Script property manual for information on script properties. (optional) A Lua table with any script property values to initiate the game object with. (optional) The world rotation of the new game object. If you do not specify a position, the game object is spawned at the position of the factory component. (optional) The world position of the new game object. create ( component, p )įactory.create() takes 5 parameters: url The id of the factory component that should spawn a new game object. lerp ( math.random (), min_y, max_y ) local component = "#star_factory" factory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |