Static function
Slow
Sky.Spawn
Replaces all Sky/Sun actors with the Ultra Dynamic Sky Actor, to be able to use the functions from this page. Internally this calls <code>Sky.DestroyAllSky()</code> automatically
Syntax
Sky.Spawn(spawn_weather = false, find_existing = true)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
spawn_weather
optional
|
boolean | false |
Whether or not to spawn the Weather Actor (to be able to use Weather related methods) |
find_existing
optional
|
boolean | true |
Whether or not to try to find existing Sky & Weather Actors spawned in the map, using their references instead |
Returns
- boolean true if an existing Ultra Dynamic Sky Actor was found in the map and its reference was used, false if a new one was spawned