Progetto H — Riferimento API Documentazione & Scripting
Funzione statica Client Lento

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

Non ancora tradotto

Sintassi

Lua
Sky.Spawn(spawn_weather = false, find_existing = true)

Parametri

Nome Tipo Predefinito Descrizione
spawn_weather facoltativo boolean false Whether or not to spawn the Weather Actor (to be able to use Weather related methods)
find_existing facoltativo boolean true Whether or not to try to find existing Sky & Weather Actors spawned in the map, using their references instead

Valore restituito

  • 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