User Tools

Site Tools


script:world_event:setskyboxcolor

SetSkyBoxColor

  • Parameters & Types:
    • time: number of game hours
    • itype:number, color attribute enumeration (SKYBOXCOLOR), SKYBOXCOLOR
    • color:string16decimal color value (0xffffff)
  • Return value and type:
    • code:number succeeded (ErrorCode.OK) ErrorCode
  • The main purpose of this method is to set the skybox color parameters
  • Specific use cases are as follows:
local code  = World:SetSkyBoxColor(time, itype, color)
if code == ErrorCode.OK then
    print('Execution Successful'  )
else
    print('Execution failed')
end
script/world_event/setskyboxcolor.txt · Last modified: 2024/06/16 13:47 by don