CreateSky

From Onset Developer Wiki
Revision as of 09:08, 7 October 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Function|Client|1.3.0}} {{FuncDescription|Create the default sky system on a custom map. This only works on custom maps.}} {{FuncSyntax|CreateSky()}} {{FuncParameter...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
CreateSky

Type: Function
Context: Client
Introduced: v1.3.0

Description

Create the default sky system on a custom map. This only works on custom maps.

Syntax

CreateSky()

Parameters

  • This function has no parameters.

Return Value

  • Returns an AActor reference to the sky actor. false on error.

Example

AddEvent("OnPackageStart", function()
	print("OnPackageStart")
	print(GetWorld():GetMapName())
	
      -- If the current map is not the original Island map then spawn the original sky.
	if GetWorld():GetMapName() ~= "Island" then
        CreateSky()
	end
end)

See also