User Tools

Site Tools


script:world_event:setskyboxattr

SetSkyBoxAttr

  • Parameters & Types:
    • time: number of game hours
    • itype: number parameter type (SKYBOXATTR) SKYBOXATTR
    • value: number parameter value (0~100)
  • Return value and type:
    • code:number succeeded (ErrorCode.OK) ErrorCode
  • The main purpose of this method is to set the skybox property parameters
  • Specific use cases are as follows:
local code  = World:SetSkyBoxAttr(time, itype, value)
if code == ErrorCode.OK then
    print('Execution Successful'  )
else
    print('Execution failed')
end
script/world_event/setskyboxattr.txt · Last modified: 2024/06/16 13:48 by don