Sun_Angle_Proc: type: procedure debug: false definitions: world script: - define ticks <[world].time> - if <[ticks]> >= 23250: - define ticks <[ticks].sub[24000].add[750]> - else: - define ticks <[ticks].add[750]> - define a ]> - define b ]> - define c ]> - define d ]> - define angle_rad <[a].add[<[b].mul[<[ticks]>]>].add[<[c].mul[<[ticks].power[2]>]>].add[<[d].mul[<[ticks].power[3]>]>]> - determine <[angle_rad]> Sun_Burn: type: world debug: false events: on delta time secondly: - foreach as:player: - define angle_rad ]> - define sun_loc <[player].location.add[].rotate_around_z[<[angle_rad]>]>]> - define points <[player].eye_location.points_between[<[sun_loc]>]> - playeffect effect:flame at:<[points]> offset:0,0,0 quantity:5